diff options
author | delphij <delphij@FreeBSD.org> | 2015-06-15 18:16:23 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2015-06-15 18:16:23 +0000 |
commit | 201165c60bd624e96ef0f3bf27c315a679d9aed4 (patch) | |
tree | 1dd91603b633f2a8e5ed33b80b626fb73335d46b /sys/fs | |
parent | 5e00ed15eb42ab0c2b5c0f7f3ed0b73d9b032214 (diff) | |
download | FreeBSD-src-201165c60bd624e96ef0f3bf27c315a679d9aed4.zip FreeBSD-src-201165c60bd624e96ef0f3bf27c315a679d9aed4.tar.gz |
MFC r283889,r283891:
Clear p_stops when doing PT_DETACH and PROCFS_CTL_DETACH.
Without this, if a process was being traced by truss(1), which
uses different p_stops bits than gdb(1), the latter would
misbehave because of the unexpected bits.
Reported by: jceel
Submitted by: sef
Sponsored by: iXsystems, Inc.
Diffstat (limited to 'sys/fs')
-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 dc267f6..5a32863 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); |