Remove P_STOPPED_TRACE bit if debugger dies without a chance to

detach debugged process.
This commit is contained in:
David Xu 2004-10-23 11:20:26 +00:00
parent 762724b3f7
commit c283653201

View File

@ -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);