2021-08-09 13:15:46 -04:00
|
|
|
package signal
|
2017-04-17 18:08:24 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
|
|
|
// SignalMap is a map of Darwin signals.
|
|
|
|
var SignalMap = map[string]syscall.Signal{
|
|
|
|
"ABRT": syscall.SIGABRT,
|
|
|
|
"ALRM": syscall.SIGALRM,
|
2021-09-16 10:17:20 -04:00
|
|
|
"BUS": syscall.SIGBUS,
|
2017-04-17 18:08:24 -04:00
|
|
|
"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,
|
|
|
|
"VTALRM": syscall.SIGVTALRM,
|
|
|
|
"WINCH": syscall.SIGWINCH,
|
|
|
|
"XCPU": syscall.SIGXCPU,
|
|
|
|
"XFSZ": syscall.SIGXFSZ,
|
|
|
|
}
|