s3-smbd: Don't close stdout if we want to log to stdout.
[samba.git] / source3 / web / startstop.c
index b24410a89f8d82cae416c4f2aa82a4df24b8732a..81350e62f5ca9bcd4bd33aa1e15149bce57a8c38 100644 (file)
@@ -36,7 +36,7 @@ void start_smbd(void)
        }
 
        if (asprintf(&binfile, "%s/smbd", get_dyn_SBINDIR()) > 0) {
-               become_daemon(true, false);
+               become_daemon(true, false, false);
                execl(binfile, binfile, "-D", NULL);
        }
        exit(0);
@@ -56,7 +56,7 @@ void start_nmbd(void)
        }
 
        if (asprintf(&binfile, "%s/nmbd", get_dyn_SBINDIR()) > 0) {
-               become_daemon(true, false);
+               become_daemon(true, false, false);
                execl(binfile, binfile, "-D", NULL);
        }
        exit(0);
@@ -76,7 +76,7 @@ void start_winbindd(void)
        }
 
        if (asprintf(&binfile, "%s/winbindd", get_dyn_SBINDIR()) > 0) {
-               become_daemon(true, false);
+               become_daemon(true, false, false);
                execl(binfile, binfile, NULL);
        }
        exit(0);