use vfork() instead of vork() since the only thing we do is execve() an app after fork (allows time to work on no-mmu)

This commit is contained in:
Mike Frysinger 2006-06-06 06:08:34 +00:00
parent b16b5bb08f
commit 8e640a1043

View File

@ -410,7 +410,7 @@ static void run_command(char *const *cmd, resource_t * resp)
__sighandler_t interrupt_signal, quit_signal; __sighandler_t interrupt_signal, quit_signal;
gettimeofday(&resp->start, (struct timezone *) 0); gettimeofday(&resp->start, (struct timezone *) 0);
pid = fork(); /* Run CMD as child process. */ pid = vfork(); /* Run CMD as child process. */
if (pid < 0) if (pid < 0)
bb_error_msg_and_die("cannot fork"); bb_error_msg_and_die("cannot fork");
else if (pid == 0) { /* If child. */ else if (pid == 0) { /* If child. */