diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nmbd/nmbd.c | 2 | ||||
-rw-r--r-- | source3/smbd/server.c | 2 | ||||
-rw-r--r-- | source3/web/startstop.c | 6 | ||||
-rw-r--r-- | source3/winbindd/winbindd.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 4443dfae9f..5dc021a547 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -889,7 +889,7 @@ static bool open_sockets(bool isdaemon, int port) if (is_daemon && !opt_interactive) { DEBUG( 2, ( "Becoming a daemon.\n" ) ); - become_daemon(Fork, no_process_group); + become_daemon(Fork, no_process_group, log_stdout); } #if HAVE_SETPGID diff --git a/source3/smbd/server.c b/source3/smbd/server.c index e5cfc27794..49e2eda3ce 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1235,7 +1235,7 @@ extern void build_options(bool screen); if (is_daemon && !interactive) { DEBUG( 3, ( "Becoming a daemon.\n" ) ); - become_daemon(Fork, no_process_group); + become_daemon(Fork, no_process_group, log_stdout); } #if HAVE_SETPGID diff --git a/source3/web/startstop.c b/source3/web/startstop.c index b24410a89f..81350e62f5 100644 --- a/source3/web/startstop.c +++ b/source3/web/startstop.c @@ -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); diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index b04fd5db2b..86304e98c5 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1185,7 +1185,7 @@ int main(int argc, char **argv, char **envp) BlockSignals(False, SIGCHLD); if (!interactive) - become_daemon(Fork, no_process_group); + become_daemon(Fork, no_process_group, log_stdout); pidfile_create("winbindd"); |