Lines Matching refs:signal
25 * process's signal mask.
26 * Also, verify that sigpending() succeeds to store signal mask that are
32 * - sigpending() should succeed to store the signal mask of pending signal.
36 * Setup signal handling.
79 #include <signal.h>
86 void sig_handler(int sig); /* signal catching function */
93 struct sigaction sa_new; /* struct to hold signal info */
94 sigset_t set; /* signal set to hold signal lists */
111 * Call sigprocmask() to block (SIGINT) signal
112 * so that, signal will not be delivered to
120 /* Send SIGINT signal to the process */
129 * Check whether process received the signal.
130 * If yes! signal handler was executed and
135 "change process's signal mask");
138 * Check whether specified signal
144 "blocked signal not "
150 * Check whether specified signal
151 * is the member of signal set.
162 * unblock the specified signal.
163 * so that, signal is delivered and
164 * signal handler executed.
171 "to unblock signal, "
198 * Initialise signal set with the list that includes/excludes
200 * Set the signal handler to catch SIGINT signal.
201 * Add the signal SIGINT to the exclude list of system-defined
212 * Initialise the signal sets with the list that
226 /* Set the signal handler function to catch the signal */
235 * Add specified signal (SIGINT) to the signal set
248 * This function gets executed when the signal SIGINT is delivered
249 * to the test process and the signal was trapped by sigaction()