diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-12-19 23:52:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-12-19 23:52:04 +0000 |
commit | 95855a9c2bb1b0162c99d05b2def53eef4288b64 (patch) | |
tree | 1887cadf12f3653da88af56cedcfc33016e71f60 /usr.bin/script | |
parent | 15c1698e444e5e4c4afcc98ea9836b2f9eecd464 (diff) |
union wait is wrong; christos
Diffstat (limited to 'usr.bin/script')
-rw-r--r-- | usr.bin/script/script.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 3fb03143b68..62434bc8156 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: script.c,v 1.9 1997/08/06 06:43:43 deraadt Exp $ */ +/* $OpenBSD: script.c,v 1.10 1998/12/19 23:52:03 deraadt Exp $ */ /* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: script.c,v 1.9 1997/08/06 06:43:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: script.c,v 1.10 1998/12/19 23:52:03 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -157,10 +157,10 @@ finish(signo) { register int die, pid; int save_errno = errno; - union wait status; + int status; die = 0; - while ((pid = wait3((int *)&status, WNOHANG, 0)) > 0) + while ((pid = wait3(&status, WNOHANG, 0)) > 0) if (pid == child) die = 1; |