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:
delphij 2015-06-01 18:49:31 +00:00
parent 0226e94a1c
commit 77722a1db5

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