Remove P_STOPPED_TRACE bit if debugger dies without a chance to
detach debugged process.
This commit is contained in:
parent
762724b3f7
commit
c283653201
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136807
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user