X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Ftime.c;h=8c7419b587a5f9e9f3a9929bf736dd56247a0ccd;hb=049d6b8c0812b20c024d714a9008cc94713a6175;hp=e0bdfe13c4196908852d1beb906eab3c4714fcee;hpb=b1312c912532196e6167aff957bf31cf34f8bf03;p=oweals%2Fbusybox.git 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. */