diff options
author | mike <mike@FreeBSD.org> | 2002-06-03 23:13:11 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-06-03 23:13:11 +0000 |
commit | 9b39ed7b9416390758870edd85ae19dbee651312 (patch) | |
tree | a21f8895cdfa7f50dfa0df9ee4a19954b3330375 /usr.bin/script | |
parent | d9ab0c8dbcc15d1f11216307b235370b43767371 (diff) | |
download | FreeBSD-src-9b39ed7b9416390758870edd85ae19dbee651312.zip FreeBSD-src-9b39ed7b9416390758870edd85ae19dbee651312.tar.gz |
Use POSIX macros for wait(2)-style status information instead of the
deprecated 4.2/4.3BSD wait union. Fix some nearby pid_t/int
confusion.
Diffstat (limited to 'usr.bin/script')
-rw-r--r-- | usr.bin/script/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 0019a46..c589239 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -209,11 +209,11 @@ usage() void finish() { - int die, e, pid; - union wait status; + pid_t pid; + int die, e, status; die = e = 0; - while ((pid = wait3((int *)&status, WNOHANG, 0)) > 0) + while ((pid = wait3(&status, WNOHANG, 0)) > 0) if (pid == child) { die = 1; if (WIFEXITED(status)) |