diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-05-10 18:01:25 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-05-10 18:01:25 +0000 |
commit | 405b3d4402434a7427ba0135b9c95946ca569c46 (patch) | |
tree | d676eef9d381a9baaeb79c4da2396c42cec5f585 /sys/kern/sys_process.c | |
parent | ecd435a29eda5ed9bfcd92a16445e2db601bc0c4 (diff) |
Revert previous, it introduced a regression with breakpoints in gdb.
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 20bfd33f203..e5056ccdcc7 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.87 2021/05/06 09:33:22 mpi Exp $ */ +/* $OpenBSD: sys_process.c,v 1.88 2021/05/10 18:01:24 mpi Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -484,8 +484,9 @@ ptrace_ctrl(struct proc *p, int req, pid_t pid, caddr_t addr, int data) /* Finally, deliver the requested signal (or none). */ if (t->p_stat == SSTOP) { + tr->ps_xsig = data; SCHED_LOCK(s); - proc_unstop(t, data); + setrunnable(t); SCHED_UNLOCK(s); } else { if (data != 0) |