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/waitpid.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/waitpid.c')
-rw-r--r-- | lib/libc/gen/waitpid.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/gen/waitpid.c b/lib/libc/gen/waitpid.c index 078a6db38d9..576de085960 100644 --- a/lib/libc/gen/waitpid.c +++ b/lib/libc/gen/waitpid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: waitpid.c,v 1.6 2005/08/08 08:05:34 espie Exp $ */ +/* $OpenBSD: waitpid.c,v 1.7 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,12 @@ * SUCH DAMAGE. */ -#include <sys/types.h> #include <sys/time.h> #include <sys/wait.h> -#include <sys/resource.h> pid_t waitpid(pid_t pid, int *istat, int options) { - return (wait4(pid, istat, options, (struct rusage *)0)); + return (wait4(pid, istat, options, NULL)); } +DEF_WEAK(waitpid); |