diff options
author | julian <julian@FreeBSD.org> | 2002-08-26 05:02:56 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2002-08-26 05:02:56 +0000 |
commit | db3b659129fcf6e0d3e2791acf12e792d642a87a (patch) | |
tree | b84b8986d9f66935e70d49dba4546b69fc0d51f1 | |
parent | 3df4c994425d55fd4d72ed52b1a2cc0721c2bafa (diff) | |
download | FreeBSD-src-db3b659129fcf6e0d3e2791acf12e792d642a87a.zip FreeBSD-src-db3b659129fcf6e0d3e2791acf12e792d642a87a.tar.gz |
move the assert to cover more cases
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |