summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2019-12-11 07:30:09 +0000
committerguenther <guenther@openbsd.org>2019-12-11 07:30:09 +0000
commit381e34d2ea89fee5668fcdf23ae079bf0d0c5f37 (patch)
tree1f7f95347c3a6f7253641b3f231d9ec05645caf5 /sys/kern/kern_kthread.c
parent%r26 hasn't been used by the threads implementation since 2016, so stop (diff)
downloadwireguard-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/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 5a1eac96ff2..5365695b40e 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_kthread.c,v 1.42 2018/07/05 14:42:30 visa Exp $ */
+/* $OpenBSD: kern_kthread.c,v 1.43 2019/12/11 07:30:09 guenther Exp $ */
/* $NetBSD: kern_kthread.c,v 1.3 1998/12/22 21:21:36 kleink Exp $ */
/*-
@@ -35,7 +35,6 @@
#include <sys/systm.h>
#include <sys/kthread.h>
#include <sys/proc.h>
-#include <sys/wait.h>
#include <sys/malloc.h>
#include <sys/queue.h>
@@ -102,7 +101,7 @@ kthread_exit(int ecode)
printf("WARNING: thread `%s' (%d) exits with status %d\n",
curproc->p_p->ps_comm, curproc->p_tid, ecode);
- exit1(curproc, W_EXITCODE(ecode, 0), EXIT_NORMAL);
+ exit1(curproc, ecode, 0, EXIT_NORMAL);
/*
* XXX Fool the compiler. Making exit1() __dead is a can