aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index f6444bbc6..2cc6a8299 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -522,7 +522,7 @@ void bb_sanitize_stdio_maybe_daemonize(int daemonize)
522 bb_perror_msg_and_die("fork"); 522 bb_perror_msg_and_die("fork");
523 if (pid) /* parent */ 523 if (pid) /* parent */
524 exit(0); 524 exit(0);
525 /* child */ 525 /* child */
526 /* if daemonizing, make sure we detach from stdio */ 526 /* if daemonizing, make sure we detach from stdio */
527 setsid(); 527 setsid();
528 dup2(fd, 0); 528 dup2(fd, 0);