Lines Matching refs:sig
77 static int skip_sig(int sig) in skip_sig() argument
79 switch (sig) { in skip_sig()
94 int sig; in main() local
111 for (sig = 1; sig < NUMSIGS; sig++) { in main()
112 if (skip_sig(sig)) in main()
114 if (kill(pid, sig) < 0) { in main()
117 pid, sig, tst_strsig(sig)); in main()
140 static void handle_sigs(int sig) in handle_sigs() argument
142 sigs_map[sig] = 1; in handle_sigs()
149 int sig; in do_child() local
152 for (sig = 1; sig < NUMSIGS; sig++) { in do_child()
153 if (skip_sig(sig)) in do_child()
156 if (signal(sig, handle_sigs) == SIG_ERR) { in do_child()
158 sig, tst_strsig(sig)); in do_child()
163 for (cnt = 0, sig = 1; sig < NUMSIGS; sig++) { in do_child()
164 if (skip_sig(sig)) in do_child()
167 TEST(sighold(sig)); in do_child()
170 sig, tst_strsig(sig)); in do_child()
183 for (sig = 1; sig < NUMSIGS; sig++) { in do_child()
184 if (sigs_map[sig]) { in do_child()
186 sig, tst_strsig(sig)); in do_child()