aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/vfork_daemon_rexec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index c0bea0ed2..1aac27b36 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -292,14 +292,14 @@ void FAST_FUNC bb_daemonize_or_rexec(int flags, char **argv)
dup2(fd, 0);
dup2(fd, 1);
dup2(fd, 2);
- if (flags & DAEMON_DOUBLE_FORK) {
- /* On Linux, session leader can acquire ctty
- * unknowingly, by opening a tty.
- * Prevent this: stop being a session leader.
- */
- if (fork_or_rexec(argv))
- _exit(EXIT_SUCCESS); /* parent */
- }
+// if (flags & DAEMON_DOUBLE_FORK) {
+// /* On Linux, session leader can acquire ctty
+// * unknowingly, by opening a tty.
+// * Prevent this: stop being a session leader.
+// */
+// if (fork_or_rexec(argv))
+// _exit(EXIT_SUCCESS); /* parent */
+// }
}
while (fd > 2) {
close(fd--);