From 00e0edb3805d763ddcbf7cfa11187cd6c3816ed2 Mon Sep 17 00:00:00 2001 From: seanc Date: Fri, 17 Oct 2003 07:53:30 +0000 Subject: Uses wait4() instead of wait3() when waiting for a child process to exit. Reviewed by: yar --- usr.bin/time/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/time') 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"); -- cgit v1.1