2014-03-10 16:38:17 -04:00
|
|
|
package signal
|
2013-09-12 02:50:26 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2014-03-10 17:22:27 -04:00
|
|
|
var SignalMap = map[string]syscall.Signal{
|
2014-03-10 16:50:16 -04:00
|
|
|
"ABRT": syscall.SIGABRT,
|
|
|
|
"ALRM": syscall.SIGALRM,
|
|
|
|
"BUS": syscall.SIGBUS,
|
|
|
|
"CHLD": syscall.SIGCHLD,
|
|
|
|
"CLD": syscall.SIGCLD,
|
|
|
|
"CONT": syscall.SIGCONT,
|
|
|
|
"FPE": syscall.SIGFPE,
|
|
|
|
"HUP": syscall.SIGHUP,
|
|
|
|
"ILL": syscall.SIGILL,
|
|
|
|
"INT": syscall.SIGINT,
|
|
|
|
"IO": syscall.SIGIO,
|
|
|
|
"IOT": syscall.SIGIOT,
|
|
|
|
"KILL": syscall.SIGKILL,
|
|
|
|
"PIPE": syscall.SIGPIPE,
|
|
|
|
"POLL": syscall.SIGPOLL,
|
|
|
|
"PROF": syscall.SIGPROF,
|
|
|
|
"PWR": syscall.SIGPWR,
|
|
|
|
"QUIT": syscall.SIGQUIT,
|
|
|
|
"SEGV": syscall.SIGSEGV,
|
|
|
|
"STKFLT": syscall.SIGSTKFLT,
|
|
|
|
"STOP": syscall.SIGSTOP,
|
|
|
|
"SYS": syscall.SIGSYS,
|
|
|
|
"TERM": syscall.SIGTERM,
|
|
|
|
"TRAP": syscall.SIGTRAP,
|
|
|
|
"TSTP": syscall.SIGTSTP,
|
|
|
|
"TTIN": syscall.SIGTTIN,
|
|
|
|
"TTOU": syscall.SIGTTOU,
|
|
|
|
"UNUSED": syscall.SIGUNUSED,
|
|
|
|
"URG": syscall.SIGURG,
|
|
|
|
"USR1": syscall.SIGUSR1,
|
|
|
|
"USR2": syscall.SIGUSR2,
|
|
|
|
"VTALRM": syscall.SIGVTALRM,
|
|
|
|
"WINCH": syscall.SIGWINCH,
|
|
|
|
"XCPU": syscall.SIGXCPU,
|
|
|
|
"XFSZ": syscall.SIGXFSZ,
|
2013-09-12 02:50:26 -04:00
|
|
|
}
|