Searched refs:sig (Results 1 – 2 of 2) sorted by relevance
43 int sig = 0; in wait_for_process() local47 sig = caught > 0 ? caught : SIGTERM; in wait_for_process()53 sig = SIGTERM; in wait_for_process()56 sig = SIGKILL; in wait_for_process()59 if (kill(pid, sig) < 0) { in wait_for_process()
5454 static void sig_handler(const int sig) { in sig_handler() argument5455 printf("Signal handled: %s.\n", strsignal(sig)); in sig_handler()5460 static int sigignore(int sig) { in sigignore() argument5463 if (sigemptyset(&sa.sa_mask) == -1 || sigaction(sig, &sa, 0) == -1) { in sigignore()