Home | History | Annotate | Download | only in templates

Lines Matching refs:SIGNAL

20 * If SA_NODEFER is not set in sa_flags, the caught signal is added to the
21 * thread's signal mask during the handler execution.
24 * -> register a signal handler for %%MYSIG%%
28 * The test fails if signal handler if reentered or signal is not pending when raised again.
45 #include <signal.h>
79 #define SIGNAL %%MYSIG%%
95 FAILED( "Signal was not masked in signal handler" );
101 /* Raise the signal again. It should be masked */
102 ret = raise( SIGNAL );
109 /* check the signal is pending */
114 UNRESOLVED( ret, "Failed to get pending signal set" );
117 ret = sigismember( &pending, SIGNAL );
121 FAILED( "signal is not pending" );
138 /* Set the signal handler */
147 UNRESOLVED( ret, "Failed to empty signal set" );
150 /* Install the signal handler for %%MYSIG%% */
151 ret = sigaction( SIGNAL, &sa, 0 );
155 UNRESOLVED( ret, "Failed to set signal handler" );
158 ret = raise( SIGNAL );