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 SIGALRM
27 * The test fails if signal handler if reentered or signal is not pending when raised again.
40 #include <signal.h>
71 #define SIGNAL SIGALRM
82 FAILED("Signal was not masked in signal handler");
87 /* Raise the signal again. It should be masked */
88 ret = raise(SIGNAL);
94 /* check the signal is pending */
98 UNRESOLVED(ret, "Failed to get pending signal set");
101 ret = sigismember(&pending, SIGNAL);
104 FAILED("signal is not pending");
121 /* Set the signal handler */
129 UNRESOLVED(ret, "Failed to empty signal set");
132 /* Install the signal handler for SIGALRM */
133 ret = sigaction(SIGNAL, &sa, 0);
136 UNRESOLVED(ret, "Failed to set signal handler");
139 ret = raise(SIGNAL);