summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-07-03 05:27:53 +0000
committerjhb <jhb@FreeBSD.org>2001-07-03 05:27:53 +0000
commit7bb1f298985ebd280b73367beff86c4c398c2d11 (patch)
tree4bfffb498fce142050d6fead516f6ae6075c1edb /sys/kern/kern_sig.c
parent8ec87a16bae18492accb8450a4e1374daf408bdf (diff)
downloadFreeBSD-src-7bb1f298985ebd280b73367beff86c4c398c2d11.zip
FreeBSD-src-7bb1f298985ebd280b73367beff86c4c398c2d11.tar.gz
Grab Giant around postsig() since sendsig() can call into the vm to
grow the stack and we already needed Giant for KTRACE.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 82d2c73..4784e40 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1535,11 +1535,6 @@ postsig(sig)
KASSERT(sig != 0, ("postsig"));
PROC_LOCK_ASSERT(p, MA_OWNED);
-#ifdef KTRACE
- PROC_UNLOCK(p);
- mtx_lock(&Giant);
- PROC_LOCK(p);
-#endif
ps = p->p_sigacts;
SIGDELSET(p->p_siglist, sig);
action = ps->ps_sigact[_SIG_IDX(sig)];
@@ -1547,7 +1542,6 @@ postsig(sig)
if (KTRPOINT(p, KTR_PSIG))
ktrpsig(p->p_tracep, sig, action, p->p_flag & P_OLDMASK ?
&p->p_oldsigmask : &p->p_sigmask, 0);
- mtx_unlock(&Giant);
#endif
_STOPEVENT(p, S_SIG, sig);
OpenPOWER on IntegriCloud