Lines Matching refs:sig
75 static int skip_sig(int sig) in skip_sig() argument
77 if (sig >= __SIGRTMIN && sig < SIGRTMIN) in skip_sig()
80 switch (sig) { in skip_sig()
93 int sig; in main() local
110 for (sig = 1; sig < NUMSIGS; sig++) { in main()
111 if (skip_sig(sig)) in main()
113 SAFE_KILL(NULL, pid, sig); in main()
135 static void handle_sigs(int sig) in handle_sigs() argument
137 sigs_map[sig] = 1; in handle_sigs()
144 int sig; in do_child() local
147 for (sig = 1; sig < NUMSIGS; sig++) { in do_child()
148 if (skip_sig(sig)) in do_child()
151 if (signal(sig, handle_sigs) == SIG_ERR) { in do_child()
153 sig, tst_strsig(sig)); in do_child()
158 for (cnt = 0, sig = 1; sig < NUMSIGS; sig++) { in do_child()
159 if (skip_sig(sig)) in do_child()
162 TEST(sighold(sig)); in do_child()
165 sig, tst_strsig(sig)); in do_child()
178 for (sig = 1; sig < NUMSIGS; sig++) { in do_child()
179 if (sigs_map[sig]) { in do_child()
181 sig, tst_strsig(sig)); in do_child()