Allow sendsig() to hand the proc lock off to osendsig() rather than having

sendsig() release the lock just so it can call osendsig() and have
osendsig() acquire the lock.
This commit is contained in:
John Baldwin 2001-05-11 23:17:05 +00:00
parent b88cd712a7
commit 87e2d38376

View File

@ -1238,7 +1238,7 @@ osendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
oonstack = sigonstack(alpha_pal_rdusp());
fsize = sizeof ksi;
rndfsize = ((fsize + 15) / 16) * 16;
PROC_LOCK(p);
PROC_LOCK_ASSERT(p, MA_OWNED);
psp = p->p_sigacts;
/*
@ -1342,7 +1342,6 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
PROC_LOCK(p);
psp = p->p_sigacts;
if (SIGISMEMBER(psp->ps_osigset, sig)) {
PROC_UNLOCK(p);
osendsig(catcher, sig, mask, code);
return;
}