diff options
author | ps <ps@FreeBSD.org> | 2000-12-28 08:34:21 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-12-28 08:34:21 +0000 |
commit | f49769785010468be1e939afb84ceafc62153c2c (patch) | |
tree | 2a8e8d5e65cd7248ce4a87b5343e83c0faa9b411 | |
parent | 38f70a08d1fa6a6707935f24c059ef2fac5a80f0 (diff) | |
download | FreeBSD-src-f49769785010468be1e939afb84ceafc62153c2c.zip FreeBSD-src-f49769785010468be1e939afb84ceafc62153c2c.tar.gz |
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
-rw-r--r-- | sys/kern/sys_process.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |