Lines Matching full:signal
5 // This file implements runtime support for signal handling.
8 // the signal handler (it cannot block, allocate memory, or use locks)
12 // sigsend is called by the signal handler to queue a new signal.
13 // signal_recv is called by the Go program to receive a newly queued signal.
36 // sig handles communication between the signal handler and os/signal.
40 // a time; access is controlled by the handlers Mutex in os/signal.
41 // The fields are only read by that one goroutine and by the signal handler.
43 // in the goroutine calling os/signal and the signal handler,
45 // as there is no connection between handling a signal and receiving one,
64 // sigsend delivers a signal from sighandler to the internal signal delivery queue.
65 // It reports whether the signal was sent. If not, the caller typically crashes the program.
66 // It runs from the signal handler, so it's limited in what it can do.
74 // We are running in the signal handler; defer is not available.
81 // Add signal to outgoing queue.
86 return true // signal already in queue
118 // Called to receive the next queued signal.
120 //go:linkname signal_recv os/signal.signal_recv
131 // Wait for updates to be available from signal sender.
157 // signalWaitUntilIdle waits until the signal delivery mechanism is idle.
158 // This is used to ensure that we do not drop a signal notification due
159 // to a race between disabling a signal and receiving a signal.
160 // This assumes that signal delivery has already been disabled for
161 // the signal(s) in question, and here we are just waiting to make sure
163 // by the os/signal package.
164 //go:linkname signalWaitUntilIdle os/signal.signalWaitUntilIdle
168 // a signal, has read from sig.wanted, is now updating sig.mask,
170 // until all current signal deliveries have completed.
184 //go:linkname signal_enable os/signal.signal_enable
189 // signal information in m.
211 //go:linkname signal_disable os/signal.signal_disable
224 //go:linkname signal_ignore os/signal.signal_ignore
240 // Checked by signal handlers.