summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-01-07 19:34:04 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-01-07 19:34:04 +0000
commit2134ae2cd2e3b02244d65c8a32b3829f0803e24a (patch)
tree6ac9e7b8b2a76e7bee0927721e831875e545c238 /sys/kern/kern_sysctl.c
parentc339d50d2b644a2495b74d54a316a940d1f9d9fe (diff)
Unbreak KERN_PROC_KTHREAD. Explicitly list KERN_PROC_KTHREAD in
the sysctl_doproc() switch so it does not match the default case (EINVAL). deraadt@ OK.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 3c3781366ad..85cba92358e 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.95 2004/01/07 03:37:57 millert Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.96 2004/01/07 19:34:03 millert Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -996,6 +996,9 @@ again:
if (p->p_flag & P_SYSTEM)
continue;
break;
+ case KERN_PROC_KTHREAD:
+ /* no filtering */
+ break;
default:
return (EINVAL);
}