diff options
author | delphij <delphij@FreeBSD.org> | 2015-06-01 18:49:31 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-06-01 18:49:31 +0000 |
commit | 77722a1db50434c5b1a75674f2034c0149fed6b1 (patch) | |
tree | d5a2b572b03596a1a72f8140d10f7c7023493020 | |
parent | 0226e94a1c2ebe5ced18af471f56cb99051622f8 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/fs/procfs/procfs_ctl.c | 1 |
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); |