summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-10-26 07:30:25 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-10-26 07:30:25 +0000
commit3d4800e5ff28c517a795353dd84d75e90bc0bac3 (patch)
treebcb6e05ecc45824b20bcd125d71c82a94a91402d /sys/kern/kern_exit.c
parent8f78581265bb64405586cff687a87ade2dc3d147 (diff)
Verify that options to wait4() are legal
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index f3f9803db6b..00123fe90be 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.7 1996/08/15 21:51:50 tholo Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.8 1996/10/26 07:30:24 tholo Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -305,10 +305,9 @@ sys_wait4(q, v, retval)
if (SCARG(uap, pid) == 0)
SCARG(uap, pid) = -q->p_pgid;
-#ifdef notyet
if (SCARG(uap, options) &~ (WUNTRACED|WNOHANG))
return (EINVAL);
-#endif
+
loop:
nfound = 0;
for (p = q->p_children.lh_first; p != 0; p = p->p_sibling.le_next) {