summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-06-01 18:49:31 +0000
committerdelphij <delphij@FreeBSD.org>2015-06-01 18:49:31 +0000
commit77722a1db50434c5b1a75674f2034c0149fed6b1 (patch)
treed5a2b572b03596a1a72f8140d10f7c7023493020 /sys/fs
parent0226e94a1c2ebe5ced18af471f56cb99051622f8 (diff)
downloadFreeBSD-src-77722a1db50434c5b1a75674f2034c0149fed6b1.zip
FreeBSD-src-77722a1db50434c5b1a75674f2034c0149fed6b1.tar.gz
Clear p_stops upon PROCFS_CTL_DETACH, similar to r283889.
Noticed by: jhb Reviewed by: sef Sponsored by: iXsystems, Inc. MFC after: 2 weeks
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/procfs/procfs_ctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c
index 1437644..15679e3 100644
--- a/sys/fs/procfs/procfs_ctl.c
+++ b/sys/fs/procfs/procfs_ctl.c
@@ -235,6 +235,7 @@ out:
} else
PROC_LOCK(p);
p->p_oppid = 0;
+ p->p_stops = 0;
p->p_flag &= ~P_WAITED; /* XXX ? */
sx_xunlock(&proctree_lock);
OpenPOWER on IntegriCloud