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 f6e655acc..48b8d8fc0 100644 --- a/miscutils/timeout.c +++ b/miscutils/timeout.c | |||
@@ -71,9 +71,7 @@ int timeout_main(int argc UNUSED_PARAM, char **argv) | |||
71 | sv1 = argv[optind]; | 71 | sv1 = argv[optind]; |
72 | sv2 = argv[optind + 1]; | 72 | sv2 = argv[optind + 1]; |
73 | #endif | 73 | #endif |
74 | pid = vfork(); | 74 | pid = xvfork(); |
75 | if (pid < 0) | ||
76 | bb_perror_msg_and_die("vfork"); | ||
77 | if (pid == 0) { | 75 | if (pid == 0) { |
78 | /* Child: spawn grandchild and exit */ | 76 | /* Child: spawn grandchild and exit */ |
79 | parent = getppid(); | 77 | parent = getppid(); |