Lines Matching refs:sig
74 static int skip_sig(int sig) in skip_sig() argument
76 if (sig >= __SIGRTMIN && sig < SIGRTMIN) in skip_sig()
79 switch (sig) { in skip_sig()
92 int sig; in main() local
109 for (sig = 1; sig < NUMSIGS; sig++) { in main()
110 if (skip_sig(sig)) in main()
112 SAFE_KILL(NULL, pid, sig); in main()
134 static void handle_sigs(int sig) in handle_sigs() argument
136 sigs_map[sig] = 1; in handle_sigs()
143 int sig; in do_child() local
146 for (sig = 1; sig < NUMSIGS; sig++) { in do_child()
147 if (skip_sig(sig)) in do_child()
150 if (signal(sig, handle_sigs) == SIG_ERR) { in do_child()
152 sig, tst_strsig(sig)); in do_child()
157 for (cnt = 0, sig = 1; sig < NUMSIGS; sig++) { in do_child()
158 if (skip_sig(sig)) in do_child()
161 TEST(sighold(sig)); in do_child()
164 sig, tst_strsig(sig)); in do_child()
177 for (sig = 1; sig < NUMSIGS; sig++) { in do_child()
178 if (sigs_map[sig]) { in do_child()
180 sig, tst_strsig(sig)); in do_child()