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 9baa813a1..989e9b841 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -238,9 +238,7 @@ void FAST_FUNC forkexit_or_rexec(char **argv) | |||
238 | void FAST_FUNC forkexit_or_rexec(void) | 238 | void FAST_FUNC forkexit_or_rexec(void) |
239 | { | 239 | { |
240 | pid_t pid; | 240 | pid_t pid; |
241 | pid = fork(); | 241 | pid = xfork(); |
242 | if (pid < 0) /* wtf? */ | ||
243 | bb_perror_msg_and_die("fork"); | ||
244 | if (pid) /* parent */ | 242 | if (pid) /* parent */ |
245 | exit(EXIT_SUCCESS); | 243 | exit(EXIT_SUCCESS); |
246 | /* child */ | 244 | /* child */ |