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 31e97051f..79141936a 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -308,7 +308,7 @@ void FAST_FUNC bb_daemonize_or_rexec(int flags, char **argv) | |||
308 | /* fflush_all(); - add it in fork_or_rexec() if necessary */ | 308 | /* fflush_all(); - add it in fork_or_rexec() if necessary */ |
309 | 309 | ||
310 | if (fork_or_rexec(argv)) | 310 | if (fork_or_rexec(argv)) |
311 | _exit(EXIT_SUCCESS); /* parent */ | 311 | _exit_SUCCESS(); /* parent */ |
312 | /* if daemonizing, detach from stdio & ctty */ | 312 | /* if daemonizing, detach from stdio & ctty */ |
313 | setsid(); | 313 | setsid(); |
314 | dup2(fd, 0); | 314 | dup2(fd, 0); |
@@ -320,7 +320,7 @@ void FAST_FUNC bb_daemonize_or_rexec(int flags, char **argv) | |||
320 | // * Prevent this: stop being a session leader. | 320 | // * Prevent this: stop being a session leader. |
321 | // */ | 321 | // */ |
322 | // if (fork_or_rexec(argv)) | 322 | // if (fork_or_rexec(argv)) |
323 | // _exit(EXIT_SUCCESS); /* parent */ | 323 | // _exit_SUCCESS(); /* parent */ |
324 | // } | 324 | // } |
325 | } | 325 | } |
326 | while (fd > 2) { | 326 | while (fd > 2) { |