aboutsummaryrefslogtreecommitdiff
path: root/miscutils/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/time.c')
-rw-r--r--miscutils/time.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/miscutils/time.c b/miscutils/time.c
index 5cfbcef8e..9facc3657 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -372,9 +372,7 @@ static void run_command(char *const *cmd, resource_t *resp)
372 void (*quit_signal)(int); 372 void (*quit_signal)(int);
373 373
374 resp->elapsed_ms = monotonic_ms(); 374 resp->elapsed_ms = monotonic_ms();
375 pid = vfork(); 375 pid = xvfork();
376 if (pid < 0)
377 bb_perror_msg_and_die("vfork");
378 if (pid == 0) { 376 if (pid == 0) {
379 /* Child */ 377 /* Child */
380 BB_EXECVP_or_die((char**)cmd); 378 BB_EXECVP_or_die((char**)cmd);