Home | History | Annotate | Download | only in sigaction

Lines Matching defs:SIGNAL

19 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the
20 * thread's signal mask during the handler execution.
23 * -> register a signal handler for SIGTTOU
27 * The test fails if signal handler if reentered or signal is not pending when raised again.
43 #include <signal.h>
77 #define SIGNAL SIGTTOU
92 FAILED("Signal was not masked in signal handler");
97 /* Raise the signal again. It should be masked */
98 ret = raise(SIGNAL);
104 /* check the signal is pending */
108 UNRESOLVED(ret, "Failed to get pending signal set");
111 ret = sigismember(&pending, SIGNAL);
114 FAILED("signal is not pending");
131 /* Set the signal handler */
139 UNRESOLVED(ret, "Failed to empty signal set");
142 /* Install the signal handler for SIGTTOU */
143 ret = sigaction(SIGNAL, &sa, 0);
146 UNRESOLVED(ret, "Failed to set signal handler");
149 ret = raise(SIGNAL);