From c28365320106e419ac8f8b720b8bbae05fa84ad3 Mon Sep 17 00:00:00 2001 From: David Xu Date: Sat, 23 Oct 2004 11:20:26 +0000 Subject: [PATCH] Remove P_STOPPED_TRACE bit if debugger dies without a chance to detach debugged process. --- sys/kern/kern_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index ae44fc348b14..12895e70bfd4 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -403,7 +403,7 @@ exit1(struct thread *td, int rv) * 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);