Lines Matching refs:sig
13 static void check_signum(int sig)
15 if (sig < 1 || sig >= SIGCHAIN_MAX_SIGNALS)
16 die("BUG: signal out of range: %d", sig);
19 static int sigchain_push(int sig, sigchain_fun f)
21 struct sigchain_signal *s = signals + sig;
22 check_signum(sig);
25 s->old[s->n] = signal(sig, f);
32 int sigchain_pop(int sig)
34 struct sigchain_signal *s = signals + sig;
35 check_signum(sig);
39 if (signal(sig, s->old[s->n - 1]) == SIG_ERR)