Assert process lock in ptracestop(), since we're going to rely
on it, and later unlock it.
This commit is contained in:
parent
59b60aa68b
commit
1a0f1d7ef9
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user