diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-06-06 06:08:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-06-06 06:08:34 +0000 |
commit | 8e640a1043ad9fe08782387a55230ebb824b4163 (patch) | |
tree | 49790440579b595384270a263f041c2024b5cace /miscutils/time.c | |
parent | b16b5bb08f8b2b1d3e5f56c6655ba0332edcdc48 (diff) | |
download | busybox-w32-8e640a1043ad9fe08782387a55230ebb824b4163.tar.gz busybox-w32-8e640a1043ad9fe08782387a55230ebb824b4163.tar.bz2 busybox-w32-8e640a1043ad9fe08782387a55230ebb824b4163.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)
Diffstat (limited to 'miscutils/time.c')
-rw-r--r-- | miscutils/time.c | 2 |
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. */ |