Lines Matching refs:signal
46 * Retrofit new signal interface to old signal primitives.
59 #include <signal.h>
79 * The following helps us keep the extended signal semantics together.
80 * We remember for each signal the address of the function we're
104 * you are either ignoring or defaulting a signal in the child.
112 signal(sig, func);
118 * Set the (permanent) disposition of a signal.
119 * If the signal is subsequently (or even now) held,
143 * If signal has been held, must retain
145 * of signal.
148 signal(sig, SIG_DFL);
150 signal(sig, _Sigtramp);
155 * Clear pending signal
157 signal(sig, SIG_IGN);
161 signal(sig, _Sigtramp);
166 * Hold a signal.
167 * This CAN be tricky if the signal's disposition is SIG_DFL.
168 * In that case, we still catch the signal so we can note it
184 * set up to catch the signal to note signal's occurrance.
188 signal(sig, _Sigtramp);
195 * Release a signal
196 * If the signal occurred while we had it held, cause the signal.
218 signal(sig, SIG_DFL);
223 * Ignore a signal.
233 * We assume LUSER called us with the signal held.
234 * When we got the signal, mark the signal as having
236 * the signal is released.
264 signal(i, SIG_IGN);
269 * Return the current disposition of a signal
270 * If we have not set this signal before, we have to
283 * If we have no knowledge of this signal,
287 old = signal(sig, SIG_IGN);
290 signal(sig, old);
294 * If we have set this signal before, then sigset()
302 * The following routine gets called for any signal
316 old = signal(sig, SIG_IGN);
318 * If signal being paused on, wakeup sigpause()
323 * If signal is being held, mark its table entry
324 * so we can trigger it when signal is released.
329 signal(sig, _Sigtramp);
333 * If the signal is being ignored, just return.
335 * any system with SIGCONT also has the new signal pkg, so...
340 * If the signal is SIG_DFL, then we probably got here
341 * by holding the signal, having it happen, then releasing
342 * the signal.
345 signal(sig, SIG_DFL);
351 * Looks like we should just cause the signal...
352 * We hold the signal for the duration of the user's
353 * code with the signal re-enabled. If the signal
357 * from there, we can cause the signal again.
361 signal(sig, _Sigtramp);
364 * If the signal re-occurred while in the user's routine,