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{
|
|
|
|
"ABRT": syscall.SIGABRT,
|
|
|
|
"ALRM": syscall.SIGALRM,
|
|
|
|
"BUG": syscall.SIGBUS,
|
|
|
|
"CHLD": syscall.SIGCHLD,
|
|
|
|
"CONT": syscall.SIGCONT,
|
|
|
|
"EMT": syscall.SIGEMT,
|
|
|
|
"FPE": syscall.SIGFPE,
|
|
|
|
"HUP": syscall.SIGHUP,
|
|
|
|
"ILL": syscall.SIGILL,
|
|
|
|
"INFO": syscall.SIGINFO,
|
|
|
|
"INT": syscall.SIGINT,
|
|
|
|
"IO": syscall.SIGIO,
|
|
|
|
"IOT": syscall.SIGIOT,
|
|
|
|
"KILL": syscall.SIGKILL,
|
|
|
|
"PIPE": syscall.SIGPIPE,
|
|
|
|
"PROF": syscall.SIGPROF,
|
|
|
|
"QUIT": syscall.SIGQUIT,
|
|
|
|
"SEGV": syscall.SIGSEGV,
|
|
|
|
"STOP": syscall.SIGSTOP,
|
|
|
|
"SYS": syscall.SIGSYS,
|
|
|
|
"TERM": syscall.SIGTERM,
|
|
|
|
"TRAP": syscall.SIGTRAP,
|
|
|
|
"TSTP": syscall.SIGTSTP,
|
|
|
|
"TTIN": syscall.SIGTTIN,
|
|
|
|
"TTOU": syscall.SIGTTOU,
|
|
|
|
"URG": syscall.SIGURG,
|
|
|
|
"USR1": syscall.SIGUSR1,
|
|
|
|
"USR2": syscall.SIGUSR2,
|
2014-03-10 16:50:16 -04:00
|
|
|
"VTALRM": syscall.SIGVTALRM,
|
2014-03-10 17:22:27 -04:00
|
|
|
"WINCH": syscall.SIGWINCH,
|
|
|
|
"XCPU": syscall.SIGXCPU,
|
|
|
|
"XFSZ": syscall.SIGXFSZ,
|
2013-09-12 02:50:26 -04:00
|
|
|
}
|