diff options
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 37d4c274e..9baa813a1 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -226,9 +226,7 @@ void FAST_FUNC forkexit_or_rexec(char **argv) | |||
226 | if (re_execed) | 226 | if (re_execed) |
227 | return; | 227 | return; |
228 | 228 | ||
229 | pid = vfork(); | 229 | pid = xvfork(); |
230 | if (pid < 0) /* wtf? */ | ||
231 | bb_perror_msg_and_die("vfork"); | ||
232 | if (pid) /* parent */ | 230 | if (pid) /* parent */ |
233 | exit(EXIT_SUCCESS); | 231 | exit(EXIT_SUCCESS); |
234 | /* child - re-exec ourself */ | 232 | /* child - re-exec ourself */ |