diff options
author | 2015-10-25 19:15:56 +0000 | |
---|---|---|
committer | 2015-10-25 19:15:56 +0000 | |
commit | 800a8ade7bb9667398282c53d4bb5e8ac8ee11be (patch) | |
tree | aaa9742f172dcf911006e317074a67a0da00dda4 /lib/libc/gen/wait.c | |
parent | Rename imsg_compose_parent and imsg_compose_rde to imsg_ctl_parent and (diff) | |
download | wireguard-openbsd-800a8ade7bb9667398282c53d4bb5e8ac8ee11be.tar.xz wireguard-openbsd-800a8ade7bb9667398282c53d4bb5e8ac8ee11be.zip |
Wrap waitpid() so calls go direct; weaken wait() and wait3().
Strip out unnecessary #includes and use NULL instead of (struct rusage *)0
Diffstat (limited to 'lib/libc/gen/wait.c')
-rw-r--r-- | lib/libc/gen/wait.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/gen/wait.c b/lib/libc/gen/wait.c index 30c1b591a9a..22cacd9f427 100644 --- a/lib/libc/gen/wait.c +++ b/lib/libc/gen/wait.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wait.c,v 1.5 2005/08/08 08:05:34 espie Exp $ */ +/* $OpenBSD: wait.c,v 1.6 2015/10/25 19:15:56 guenther Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -28,13 +28,11 @@ * SUCH DAMAGE. */ -#include <sys/types.h> #include <sys/time.h> #include <sys/wait.h> -#include <sys/resource.h> pid_t wait(int *istat) { - return (wait4(WAIT_ANY, istat, 0, (struct rusage *)0)); + return (wait4(WAIT_ANY, istat, 0, NULL)); } |