cursig
sig_t cursig; /* current handler (valid if TF_ORIG_* set) */
} else if (p->cursig == SIG_DFL) {
p->cursig = SIG_IGN;
if (p->cursig != f) {
p->cursig = f;
si.si_signo = cursig(p, &ctx, 0);
while ((signum = cursig(p, &ctx, 0)) != 0)
while ((signum = cursig(p, &ctx, 0)) != 0)
if ((sig = cursig(p, &ctx, 1)) != 0) {
int cursig(struct proc *p, struct sigctx *, int);
sig = cursig(p, &ctx, 0);