aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Chittenden <seanc@FreeBSD.org>2003-10-17 07:53:30 +0000
committerSean Chittenden <seanc@FreeBSD.org>2003-10-17 07:53:30 +0000
commit77879b47b73053aa05fdc9c2a5b609cd8debaa4f (patch)
treed3e49add2243b7093c39c16d735148c1f66a277a
parente8b6bb6f87c33d22a7d2c37da992532a2446838d (diff)
Notes
-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 f5cba93edb86..ac154165eaa3 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");