Lines Matching defs:handler
28 * Use sigaction(2) to set a signal handler for SIGUSR1 with a certain
30 * finally send the signal to ourselves, causing the signal handler to
31 * run. The signal handler then checks the signal handler to run. The
32 * signal handler then checks certain conditions based on the test case
36 * 1) Set SA_RESETHAND and SA_SIGINFO. When the handler runs,
39 * 2) Set SA_RESETHAND. When the handler runs, SIGUSR1 should be
43 * 3) Same as case #2, but when the handler is established, sa_mask is
48 * provide siginfo (such as pthread_kill(3)) should invoke the handler
83 * handler()
85 * A signal handler that understands which test case is currently
89 void handler(int sig, siginfo_t * sip, void *ucp)
146 "be masked when the handler executes.");
149 tst_resm(TPASS, "SA_RESETHAND was masked when handler "
170 * siginfo should invoke the handler with a non-NULL siginfo
189 * Establish a signal handler for SIGUSR1 with the specified flags and
190 * signal to mask while the handler executes.
196 sa.sa_sigaction = handler;