Lines Matching full:signal
24 * Verify that sigsuspend() succeeds to change process's current signal
25 * mask with the specified signal mask and suspends the process execution
26 * until the delivery of a signal.
29 * sigsuspend() should return after the execution of signal catching
30 * function and the previous signal mask should be restored.
34 * Setup signal handling.
77 #include <signal.h>
85 struct sigaction sa_new; /* struct to hold signal info */
86 sigset_t signalset; /* signal set to hold signal lists */
92 void sig_handler(int sig); /* signal catching function */
110 * Call sigsuspend() to replace current signal mask
112 * receipt of a signal 'SIGALRM'.
122 "to get previous signal mask "
126 "preserve signal mask");
147 * Initialise signal set with the list that includes/excludes
149 * Set the signal handler to catch SIGALRM signal.
150 * Get the current signal mask of test process using sigprocmask().
160 * Initialise the signal sets with the list that
174 /* Set the signal handler function to catch the signal */
182 /* Read the test process's current signal mask. */
192 * sig_handler(int sig) - Signal catching function.
193 * This function gets executed when the signal SIGALRM is delivered
194 * to the test process after the expiry of alarm time and the signal was