aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Smith <kensmith@FreeBSD.org>2004-10-28 02:49:32 +0000
committerKen Smith <kensmith@FreeBSD.org>2004-10-28 02:49:32 +0000
commita424f330df6240e5934ca0f3cb197cc016f5b7df (patch)
tree27a4e307dbb535ce5d5eb2d944c2758d3ef49271
parent215cd1e94a01f32c9c1c7d7f0d0760aa126bcee1 (diff)
downloadsrc-a424f330df6240e5934ca0f3cb197cc016f5b7df.tar.gz
src-a424f330df6240e5934ca0f3cb197cc016f5b7df.zip
MFC of Rev 1.251. From commit log:
> revision 1.251 > date: 2004/10/23 11:20:26; author: davidxu; state: Exp; lines: +1 -1 > Remove P_STOPPED_TRACE bit if debugger dies without a chance to > detach debugged process. Work by: davidxu Approved by: re (kensmith approved davidxu but he asked me to commit) Note: RELENG_5_0_3_RELEASE tag will be slid to include this.
Notes
Notes: svn path=/releng/5.3/; revision=137004
-rw-r--r--sys/kern/kern_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 747fb3b68d47..edb81eb4ca85 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -403,7 +403,7 @@ retry:
* since their existence means someone is screwing up.
*/
if (q->p_flag & P_TRACED) {
- q->p_flag &= ~P_TRACED;
+ q->p_flag &= ~(P_TRACED | P_STOPPED_TRACE);
psignal(q, SIGKILL);
}
PROC_UNLOCK(q);