diff options
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 151739ae2..62beb6a5d 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -313,7 +313,7 @@ void FAST_FUNC bb_daemonize_or_rexec(int flags, char **argv) | |||
313 | /* fflush_all(); - add it in fork_or_rexec() if necessary */ | 313 | /* fflush_all(); - add it in fork_or_rexec() if necessary */ |
314 | 314 | ||
315 | if (fork_or_rexec(argv)) | 315 | if (fork_or_rexec(argv)) |
316 | _exit(EXIT_SUCCESS); /* parent */ | 316 | _exit_SUCCESS(); /* parent */ |
317 | /* if daemonizing, detach from stdio & ctty */ | 317 | /* if daemonizing, detach from stdio & ctty */ |
318 | setsid(); | 318 | setsid(); |
319 | dup2(fd, 0); | 319 | dup2(fd, 0); |
@@ -325,7 +325,7 @@ void FAST_FUNC bb_daemonize_or_rexec(int flags, char **argv) | |||
325 | // * Prevent this: stop being a session leader. | 325 | // * Prevent this: stop being a session leader. |
326 | // */ | 326 | // */ |
327 | // if (fork_or_rexec(argv)) | 327 | // if (fork_or_rexec(argv)) |
328 | // _exit(EXIT_SUCCESS); /* parent */ | 328 | // _exit_SUCCESS(); /* parent */ |
329 | // } | 329 | // } |
330 | } | 330 | } |
331 | while (fd > 2) { | 331 | while (fd > 2) { |