diff options
author | 2019-12-11 07:30:09 +0000 | |
---|---|---|
committer | 2019-12-11 07:30:09 +0000 | |
commit | 381e34d2ea89fee5668fcdf23ae079bf0d0c5f37 (patch) | |
tree | 1f7f95347c3a6f7253641b3f231d9ec05645caf5 /sys/kern/sys_process.c | |
parent | %r26 hasn't been used by the threads implementation since 2016, so stop (diff) | |
download | wireguard-openbsd-381e34d2ea89fee5668fcdf23ae079bf0d0c5f37.tar.xz wireguard-openbsd-381e34d2ea89fee5668fcdf23ae079bf0d0c5f37.zip |
Replace p_xstat with ps_xexit and ps_xsig
Convert those to a consolidated status when needed in wait4(), kevent(),
and sysctl()
Pass exit code and signal separately to exit1()
(This also serves as prep for adding waitid(2))
ok mpi@
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 94837afeeca..513ccd24d28 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.81 2019/11/29 12:43:14 mpi Exp $ */ +/* $OpenBSD: sys_process.c,v 1.82 2019/12/11 07:30:09 guenther Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -493,7 +493,7 @@ 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) { - t->p_xstat = data; + tr->ps_xsig = data; SCHED_LOCK(s); setrunnable(t); SCHED_UNLOCK(s); |