summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-04-06 03:44:34 +0000
committertedu <tedu@openbsd.org>2013-04-06 03:44:34 +0000
commit7e4992814da25ff0192f39c21961a23e3099612a (patch)
tree9ed38bb189e0e6556af1a05ca9675a0eccec9d9a /sys/kern/kern_exit.c
parentkill redundant prototype (diff)
downloadwireguard-openbsd-7e4992814da25ff0192f39c21961a23e3099612a.tar.xz
wireguard-openbsd-7e4992814da25ff0192f39c21961a23e3099612a.zip
rthreads are always enabled. remove the sysctl.
ok deraadt guenther kettenis matthew
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index c63330165ac..3f3cc981fb5 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.121 2013/03/30 06:32:25 tedu Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.122 2013/04/06 03:44:34 tedu Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -96,9 +96,6 @@ sys___threxit(struct proc *p, void *v, register_t *retval)
syscallarg(pid_t *) notdead;
} */ *uap = v;
- if (!rthreads_enabled)
- return (EINVAL);
-
if (SCARG(uap, notdead) != NULL) {
pid_t zero = 0;
if (copyout(&zero, SCARG(uap, notdead), sizeof(zero))) {