From f49769785010468be1e939afb84ceafc62153c2c Mon Sep 17 00:00:00 2001 From: ps Date: Thu, 28 Dec 2000 08:34:21 +0000 Subject: 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 --- sys/kern/sys_process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index f6622b3..0bd49fc 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -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); -- cgit v1.1