summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-03 08:55:11 +0000
committerangelos <angelos@openbsd.org>2001-06-03 08:55:11 +0000
commitdf97c4a70082b0f266cf7d2523bb799d7b4811bb (patch)
treed5dd2bc1695602216fd73832c2c5fa1b8bc2a774
parentUse KERN_NPROCS to get the number of processes on the system, to (diff)
downloadwireguard-openbsd-df97c4a70082b0f266cf7d2523bb799d7b4811bb.tar.xz
wireguard-openbsd-df97c4a70082b0f266cf7d2523bb799d7b4811bb.zip
WALTSIG is a valid option for sys_wait4().
-rw-r--r--sys/kern/kern_exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 3884df3cc90..b74c64b0357 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.31 2001/05/16 05:07:52 millert Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.32 2001/06/03 08:55:11 angelos Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -427,7 +427,7 @@ sys_wait4(q, v, retval)
if (SCARG(uap, pid) == 0)
SCARG(uap, pid) = -q->p_pgid;
- if (SCARG(uap, options) &~ (WUNTRACED|WNOHANG))
+ if (SCARG(uap, options) &~ (WUNTRACED|WNOHANG|WALTSIG))
return (EINVAL);
loop: