1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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:
Paul Saab 2000-12-28 08:34:21 +00:00
parent 4058c0f013
commit 6a10f299b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70418

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