diff options
author | seanc <seanc@FreeBSD.org> | 2003-10-17 07:53:30 +0000 |
---|---|---|
committer | seanc <seanc@FreeBSD.org> | 2003-10-17 07:53:30 +0000 |
commit | 00e0edb3805d763ddcbf7cfa11187cd6c3816ed2 (patch) | |
tree | d3e49add2243b7093c39c16d735148c1f66a277a /usr.bin/time | |
parent | ecd5e24d196c17e5c53be35fa4fac9e0d6fd1215 (diff) | |
download | FreeBSD-src-00e0edb3805d763ddcbf7cfa11187cd6c3816ed2.zip FreeBSD-src-00e0edb3805d763ddcbf7cfa11187cd6c3816ed2.tar.gz |
Uses wait4() instead of wait3() when waiting for a child process to exit.
Reviewed by: yar
Diffstat (limited to 'usr.bin/time')
-rw-r--r-- | usr.bin/time/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c index f5cba93..ac15416 100644 --- a/usr.bin/time/time.c +++ b/usr.bin/time/time.c @@ -128,7 +128,7 @@ main(int argc, char **argv) /* parent */ (void)signal(SIGINT, SIG_IGN); (void)signal(SIGQUIT, SIG_IGN); - while (wait3(&status, 0, &ru) != pid); /* XXX use waitpid */ + while (wait4(pid, &status, 0, &ru) != pid); gettimeofday(&after, (struct timezone *)NULL); if ( ! WIFEXITED(status)) warnx("command terminated abnormally"); |