const SIGHUP
pub const SIGHUP = 1Purpose
Constant SIGHUP, defining protocol or algorithm parameters.
#os/signalUnix signal numbers. notify is not hooked to the kernel and throws so signals are not silently dropped.
const SIGHUPpub const SIGHUP = 1Constant SIGHUP, defining protocol or algorithm parameters.
const INTERRUPTpub const INTERRUPT = 2Constant INTERRUPT, defining protocol or algorithm parameters.
const SIGINTpub const SIGINT = 2Constant SIGINT, defining protocol or algorithm parameters.
const SIGQUITpub const SIGQUIT = 3Constant SIGQUIT, defining protocol or algorithm parameters.
const KILLpub const KILL = 9Constant KILL, defining protocol or algorithm parameters.
const SIGKILLpub const SIGKILL = 9Constant SIGKILL, defining protocol or algorithm parameters.
const SIGPIPEpub const SIGPIPE = 13Constant SIGPIPE, defining protocol or algorithm parameters.
const SIGTERMpub const SIGTERM = 15Constant SIGTERM, defining protocol or algorithm parameters.
struct Notifierpub struct Notifier {
pub ch chan int
pub sig int
pub active bool
}Structure encapsulating ch, sig, active.
ch chan intsig intactive boolnew_notifierpub fn new_notifier(c chan int, sig int) NotifierConstruct notifier.
c chan intsig intNotifier — a value of this type
($&Notifier) stoppub fn (n $&Notifier) stop()Execute stop on $&Notifier.
n $&NotifierNotifier instance used by this call (exclusive borrow).This call does not return a value.
(&Notifier) raisepub fn (n &Notifier) raise(sig int) boolExecute raise on &Notifier.
n &NotifierNotifier instance used by this call (borrow).sig intbool — true or false
notifypub fn notify(c chan int, sig int) intExecute notify. Throws on failure; handle the error or propagate it to the caller.
c chan intsig intint — a value of this type
stoppub fn stop(c chan int) intExecute stop.
c chan intint — a value of this type
ignorepub fn ignore(sig int) intExecute ignore. Throws on failure; handle the error or propagate it to the caller.
sig intint — a value of this type
raisepub fn raise(c chan int, sig int) boolExecute raise.
c chan intsig intbool — true or false