github.com/reds/docker@v1.11.2-rc1/pkg/signal/signal_linux.go (about)

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