github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/pkg/signal/signal_linux.go (about)

     1  package signal
     2  
     3  import (
     4  	"syscall"
     5  
     6  	"golang.org/x/sys/unix"
     7  )
     8  
     9  const (
    10  	sigrtmin = 34
    11  	sigrtmax = 64
    12  )
    13  
    14  // SignalMap is a map of Linux signals.
    15  var SignalMap = map[string]syscall.Signal{
    16  	"ABRT":     unix.SIGABRT,
    17  	"ALRM":     unix.SIGALRM,
    18  	"BUS":      unix.SIGBUS,
    19  	"CHLD":     unix.SIGCHLD,
    20  	"CLD":      unix.SIGCLD,
    21  	"CONT":     unix.SIGCONT,
    22  	"FPE":      unix.SIGFPE,
    23  	"HUP":      unix.SIGHUP,
    24  	"ILL":      unix.SIGILL,
    25  	"INT":      unix.SIGINT,
    26  	"IO":       unix.SIGIO,
    27  	"IOT":      unix.SIGIOT,
    28  	"KILL":     unix.SIGKILL,
    29  	"PIPE":     unix.SIGPIPE,
    30  	"POLL":     unix.SIGPOLL,
    31  	"PROF":     unix.SIGPROF,
    32  	"PWR":      unix.SIGPWR,
    33  	"QUIT":     unix.SIGQUIT,
    34  	"SEGV":     unix.SIGSEGV,
    35  	"STKFLT":   unix.SIGSTKFLT,
    36  	"STOP":     unix.SIGSTOP,
    37  	"SYS":      unix.SIGSYS,
    38  	"TERM":     unix.SIGTERM,
    39  	"TRAP":     unix.SIGTRAP,
    40  	"TSTP":     unix.SIGTSTP,
    41  	"TTIN":     unix.SIGTTIN,
    42  	"TTOU":     unix.SIGTTOU,
    43  	"URG":      unix.SIGURG,
    44  	"USR1":     unix.SIGUSR1,
    45  	"USR2":     unix.SIGUSR2,
    46  	"VTALRM":   unix.SIGVTALRM,
    47  	"WINCH":    unix.SIGWINCH,
    48  	"XCPU":     unix.SIGXCPU,
    49  	"XFSZ":     unix.SIGXFSZ,
    50  	"RTMIN":    sigrtmin,
    51  	"RTMIN+1":  sigrtmin + 1,
    52  	"RTMIN+2":  sigrtmin + 2,
    53  	"RTMIN+3":  sigrtmin + 3,
    54  	"RTMIN+4":  sigrtmin + 4,
    55  	"RTMIN+5":  sigrtmin + 5,
    56  	"RTMIN+6":  sigrtmin + 6,
    57  	"RTMIN+7":  sigrtmin + 7,
    58  	"RTMIN+8":  sigrtmin + 8,
    59  	"RTMIN+9":  sigrtmin + 9,
    60  	"RTMIN+10": sigrtmin + 10,
    61  	"RTMIN+11": sigrtmin + 11,
    62  	"RTMIN+12": sigrtmin + 12,
    63  	"RTMIN+13": sigrtmin + 13,
    64  	"RTMIN+14": sigrtmin + 14,
    65  	"RTMIN+15": sigrtmin + 15,
    66  	"RTMAX-14": sigrtmax - 14,
    67  	"RTMAX-13": sigrtmax - 13,
    68  	"RTMAX-12": sigrtmax - 12,
    69  	"RTMAX-11": sigrtmax - 11,
    70  	"RTMAX-10": sigrtmax - 10,
    71  	"RTMAX-9":  sigrtmax - 9,
    72  	"RTMAX-8":  sigrtmax - 8,
    73  	"RTMAX-7":  sigrtmax - 7,
    74  	"RTMAX-6":  sigrtmax - 6,
    75  	"RTMAX-5":  sigrtmax - 5,
    76  	"RTMAX-4":  sigrtmax - 4,
    77  	"RTMAX-3":  sigrtmax - 3,
    78  	"RTMAX-2":  sigrtmax - 2,
    79  	"RTMAX-1":  sigrtmax - 1,
    80  	"RTMAX":    sigrtmax,
    81  }