Assert process lock in ptracestop(), since we're going to rely

on it, and later unlock it.
This commit is contained in:
rwatson 2004-01-29 00:58:21 +00:00
parent 59b60aa68b
commit 1a0f1d7ef9

View File

@ -2027,6 +2027,7 @@ ptracestop(struct thread *td, int sig)
{
struct proc *p = td->td_proc;
PROC_LOCK_ASSERT(p, MA_OWNED);
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK,
&p->p_mtx.mtx_object, "Stopping for traced signal");