Send a SIGCONT when detaching or continuing the excution of a traced
process. This fixes a problem when attaching to a process in gdb and the process staying in the STOP'd state after quiting gdb. This whole process seems a bit suspect, but this seems to work. Reviewed by: peter
This commit is contained in:
parent
4058c0f013
commit
6a10f299b9
@ -381,6 +381,7 @@ ptrace(curp, uap)
|
||||
if (p->p_stat == SSTOP) {
|
||||
p->p_xstat = uap->data;
|
||||
setrunnable(p);
|
||||
psignal(p, SIGCONT);
|
||||
mtx_exit(&sched_lock, MTX_SPIN);
|
||||
} else {
|
||||
mtx_exit(&sched_lock, MTX_SPIN);
|
||||
|
Loading…
Reference in New Issue
Block a user