Lines Matching refs:sig
78 int pid, npid, sig, nsig; in main() local
106 for (sig = 1; sig <= 15; sig++) { in main()
107 if (sig == SIGUSR1 || sig == SIGUSR2 || sig == SIGBUS) in main()
111 signal(sig, SIG_DFL); in main()
116 self_exec(av[0], "d", sig); in main()
120 do_child(sig); in main()
146 if ((sig == 1) || (sig == 2) || in main()
147 (sig == 9) || (sig == 13) || in main()
148 (sig == 14) || in main()
149 (sig == 15)) { in main()
157 sig); in main()
159 } else if ((sig == 3) || (sig == 4) || in main()
160 (sig == 5) || (sig == 6) || in main()
161 (sig == 8) || (sig == 11)) { in main()
166 "number %d", sig); in main()
173 if (nsig != sig) { in main()
179 "%d", nsig, sig); in main()
208 static void do_child(int sig) in do_child() argument
213 if (kill(pid, sig) == -1) { in do_child()