Documentation ¶
Overview ¶
Package signal provides helper functions for dealing with signals across various operating systems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SignalMap = map[string]struct{}{
"ABRT": {},
"ALRM": {},
"BUS": {},
"CHLD": {},
"CLD": {},
"CONT": {},
"FPE": {},
"HUP": {},
"ILL": {},
"INT": {},
"IO": {},
"IOT": {},
"KILL": {},
"PIPE": {},
"POLL": {},
"PROF": {},
"PWR": {},
"QUIT": {},
"SEGV": {},
"STKFLT": {},
"STOP": {},
"SYS": {},
"TERM": {},
"TRAP": {},
"TSTP": {},
"TTIN": {},
"TTOU": {},
"UNUSED": {},
"URG": {},
"USR1": {},
"USR2": {},
"VTALRM": {},
"WINCH": {},
"XCPU": {},
"XFSZ": {},
"RTMIN": {},
"RTMIN+1": {},
"RTMIN+2": {},
"RTMIN+3": {},
"RTMIN+4": {},
"RTMIN+5": {},
"RTMIN+6": {},
"RTMIN+7": {},
"RTMIN+8": {},
"RTMIN+9": {},
"RTMIN+10": {},
"RTMIN+11": {},
"RTMIN+12": {},
"RTMIN+13": {},
"RTMIN+14": {},
"RTMIN+15": {},
"RTMAX-14": {},
"RTMAX-13": {},
"RTMAX-12": {},
"RTMAX-11": {},
"RTMAX-10": {},
"RTMAX-9": {},
"RTMAX-8": {},
"RTMAX-7": {},
"RTMAX-6": {},
"RTMAX-5": {},
"RTMAX-4": {},
"RTMAX-3": {},
"RTMAX-2": {},
"RTMAX-1": {},
"RTMAX": {},
"BUG": {},
"EMT": {},
"INFO": {},
"BUF": {},
"LWP": {},
"THR": {},
}
SignalMap is a map of supported signals.
Functions ¶
func CheckSignal ¶
CheckSignal translates a string to a valid syscall signal. It returns an error if the signal map doesn't include the given signal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.