From 405b3d4402434a7427ba0135b9c95946ca569c46 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 10 May 2021 18:01:25 +0000 Subject: Revert previous, it introduced a regression with breakpoints in gdb. --- sys/kern/sys_process.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern/sys_process.c') 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) -- cgit v1.2.3