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:
ps 2000-12-28 08:34:21 +00:00
parent 38f70a08d1
commit f497697850

View File

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