1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

Clear p_stops upon PROCFS_CTL_DETACH, similar to r283889.

Noticed by:	jhb
Reviewed by:	sef
Sponsored by:	iXsystems, Inc.
MFC after:	2 weeks
This commit is contained in:
Xin LI 2015-06-01 18:49:31 +00:00
parent 4c372ca254
commit 6e55e724a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283891

View File

@ -235,6 +235,7 @@ procfs_control(struct thread *td, struct proc *p, int op)
} else
PROC_LOCK(p);
p->p_oppid = 0;
p->p_stops = 0;
p->p_flag &= ~P_WAITED; /* XXX ? */
sx_xunlock(&proctree_lock);