summaryrefslogtreecommitdiff
path: root/games/sail
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2011-11-06 01:43:51 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2011-11-06 01:43:51 +0000
commit29e70d0d2b7fe5f61fb7193f7ea2a8c59c5634a4 (patch)
tree82bf07c15c936247c09ca46809ee1eda37cb9231 /games/sail
parentf609247fe087b7b78333e341fe10d53c68ef5c60 (diff)
union wait is dead, ancient history; stop using it
ok deraadt@
Diffstat (limited to 'games/sail')
-rw-r--r--games/sail/pl_1.c6
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);