Home | History | Annotate | Download | only in signal

Lines Matching defs:signal

5 package signal
15 m map[chan<- os.Signal]*handler
16 // Map a signal to the number of channels receiving it.
27 c chan<- os.Signal
48 // receive them and either reset the signal handlers to their original values
50 func cancel(sigs []os.Signal, action func(int)) {
85 func Ignore(sig ...os.Signal) {
89 // Notify causes package signal to relay incoming signals to c.
93 // Package signal will not block sending to c: the caller must ensure
95 // signal rate. For a channel used for notification of just one signal value,
105 func Notify(c chan<- os.Signal, sig ...os.Signal) {
107 panic("os/signal: Notify using nil channel")
116 handlers.m = make(map[chan<- os.Signal]*handler)
148 // If no signals are provided, all signal handlers will be reset.
149 func Reset(sig ...os.Signal) {
153 // Stop causes package signal to stop relaying incoming signals to c.
156 func Stop(c chan<- os.Signal) {
176 // We want to avoid a race for a signal such as SIGINT:
179 // To avoid the possibility that the signal is delivered,
180 // and the signal handler invoked, and then Stop deregisters
183 // channels being stopped and wait for signal delivery to
208 func process(sig os.Signal) {