diff options
Diffstat (limited to 'miscutils/timeout.c')
-rw-r--r-- | miscutils/timeout.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/miscutils/timeout.c b/miscutils/timeout.c index f6e655a..48b8d8f 100644 --- a/miscutils/timeout.c +++ b/miscutils/timeout.c @@ -71,9 +71,7 @@ int timeout_main(int argc UNUSED_PARAM, char **argv) sv1 = argv[optind]; sv2 = argv[optind + 1]; #endif - pid = vfork(); - if (pid < 0) - bb_perror_msg_and_die("vfork"); + pid = xvfork(); if (pid == 0) { /* Child: spawn grandchild and exit */ parent = getppid(); |