1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

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

on it, and later unlock it.
This commit is contained in:
Robert Watson 2004-01-29 00:58:21 +00:00
parent 0efd0097cb
commit 30a9f26db2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125186

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");