1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-daemon: Don't set log_to_stdout for become_daemon()

ctdbd logs to stderr in interactive mode, not stdout.  This way stdout
is always closed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-10-18 17:47:55 +11:00 committed by Amitay Isaacs
parent c84254d23d
commit 9c41481f21

View File

@ -1230,7 +1230,7 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork)
int res, ret = -1;
struct tevent_fd *fde;
become_daemon(do_fork, !do_fork, !do_fork);
become_daemon(do_fork, !do_fork, false);
ignore_signal(SIGPIPE);
ignore_signal(SIGUSR1);