diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-11-06 01:43:51 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-11-06 01:43:51 +0000 |
commit | 29e70d0d2b7fe5f61fb7193f7ea2a8c59c5634a4 (patch) | |
tree | 82bf07c15c936247c09ca46809ee1eda37cb9231 /games | |
parent | f609247fe087b7b78333e341fe10d53c68ef5c60 (diff) |
union wait is dead, ancient history; stop using it
ok deraadt@
Diffstat (limited to 'games')
-rw-r--r-- | games/sail/pl_1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/sail/pl_1.c b/games/sail/pl_1.c index a68e69a0e5c..f9a463744b4 100644 --- a/games/sail/pl_1.c +++ b/games/sail/pl_1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pl_1.c,v 1.9 2009/10/27 23:59:27 deraadt Exp $ */ +/* $OpenBSD: pl_1.c,v 1.10 2011/11/06 01:43:50 guenther Exp $ */ /* $NetBSD: pl_1.c,v 1.3 1995/04/22 10:37:07 cgd Exp $ */ /* @@ -124,13 +124,13 @@ void child(n) int n __attribute__((unused)); { - union wait status; + int status; int pid; int save_errno = errno; (void) signal(SIGCHLD, SIG_DFL); do { - pid = wait3((int *)&status, WNOHANG, (struct rusage *)0); + pid = waitpid((pid_t)-1, &status, WNOHANG); if (pid < 0 || (pid > 0 && !WIFSTOPPED(status))) hasdriver = 0; } while (pid > 0); |