aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-06 06:08:34 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-06 06:08:34 +0000
commit28903a5eea791f55431588856d92e590e086ed1c (patch)
tree49790440579b595384270a263f041c2024b5cace
parent0dd736d16c842d741c74ff0a43a2d8f1e121d7c8 (diff)
downloadbusybox-w32-28903a5eea791f55431588856d92e590e086ed1c.tar.gz
busybox-w32-28903a5eea791f55431588856d92e590e086ed1c.tar.bz2
busybox-w32-28903a5eea791f55431588856d92e590e086ed1c.zip
use vfork() instead of vork() since the only thing we do is execve() an app after fork (allows time to work on no-mmu)
git-svn-id: svn://busybox.net/trunk/busybox@15293 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--miscutils/time.c2
1 files changed, 1 insertions, 1 deletions
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)
410 __sighandler_t interrupt_signal, quit_signal; 410 __sighandler_t interrupt_signal, quit_signal;
411 411
412 gettimeofday(&resp->start, (struct timezone *) 0); 412 gettimeofday(&resp->start, (struct timezone *) 0);
413 pid = fork(); /* Run CMD as child process. */ 413 pid = vfork(); /* Run CMD as child process. */
414 if (pid < 0) 414 if (pid < 0)
415 bb_error_msg_and_die("cannot fork"); 415 bb_error_msg_and_die("cannot fork");
416 else if (pid == 0) { /* If child. */ 416 else if (pid == 0) { /* If child. */