From db3b659129fcf6e0d3e2791acf12e792d642a87a Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 26 Aug 2002 05:02:56 +0000 Subject: move the assert to cover more cases --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_sig.c') diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 6cea53b..c5d8825 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1552,6 +1552,7 @@ issignal(td) p = td->td_proc; PROC_LOCK_ASSERT(p, MA_OWNED); + WITNESS_SLEEP(1, &p->p_mtx.mtx_object); for (;;) { int traced = (p->p_flag & P_TRACED) || (p->p_stops & S_SIG); @@ -1651,7 +1652,6 @@ issignal(td) * process group, ignore tty stop signals. */ if (prop & SA_STOP) { - WITNESS_SLEEP(1, &p->p_mtx.mtx_object); if (p->p_flag & P_TRACED || (p->p_pgrp->pg_jobc == 0 && prop & SA_TTYSTOP)) -- cgit v1.1