From 8e640a1043ad9fe08782387a55230ebb824b4163 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 6 Jun 2006 06:08:34 +0000 Subject: use vfork() instead of vork() since the only thing we do is execve() an app after fork (allows time to work on no-mmu) --- miscutils/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils/time.c') diff --git a/miscutils/time.c b/miscutils/time.c index e0bdfe13c..8c7419b58 100644 --- a/miscutils/time.c +++ b/miscutils/time.c @@ -410,7 +410,7 @@ static void run_command(char *const *cmd, resource_t * resp) __sighandler_t interrupt_signal, quit_signal; gettimeofday(&resp->start, (struct timezone *) 0); - pid = fork(); /* Run CMD as child process. */ + pid = vfork(); /* Run CMD as child process. */ if (pid < 0) bb_error_msg_and_die("cannot fork"); else if (pid == 0) { /* If child. */ -- cgit v1.2.3