summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index e956cdf..6ebe032 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -438,7 +438,11 @@ exit1(struct thread *td, int rv)
* since their existence means someone is screwing up.
*/
if (q->p_flag & P_TRACED) {
+ struct thread *temp;
+
q->p_flag &= ~(P_TRACED | P_STOPPED_TRACE);
+ FOREACH_THREAD_IN_PROC(q, temp)
+ temp->td_dbgflags &= ~TDB_SUSPEND;
psignal(q, SIGKILL);
}
PROC_UNLOCK(q);
OpenPOWER on IntegriCloud