summaryrefslogtreecommitdiffstats
path: root/usr.bin/time
diff options
context:
space:
mode:
authorseanc <seanc@FreeBSD.org>2003-10-17 07:53:30 +0000
committerseanc <seanc@FreeBSD.org>2003-10-17 07:53:30 +0000
commit00e0edb3805d763ddcbf7cfa11187cd6c3816ed2 (patch)
treed3e49add2243b7093c39c16d735148c1f66a277a /usr.bin/time
parentecd5e24d196c17e5c53be35fa4fac9e0d6fd1215 (diff)
downloadFreeBSD-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.c2
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");
OpenPOWER on IntegriCloud