From 77722a1db50434c5b1a75674f2034c0149fed6b1 Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 1 Jun 2015 18:49:31 +0000 Subject: [PATCH] Clear p_stops upon PROCFS_CTL_DETACH, similar to r283889. Noticed by: jhb Reviewed by: sef Sponsored by: iXsystems, Inc. MFC after: 2 weeks --- sys/fs/procfs/procfs_ctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c index 1437644d5fa3..15679e36da32 100644 --- a/sys/fs/procfs/procfs_ctl.c +++ b/sys/fs/procfs/procfs_ctl.c @@ -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);