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

ctdb-daemon: Avoid closing stdin when running in interactive mode

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2018-06-21 17:57:02 +10:00 committed by Martin Schwenke
parent af69700853
commit a4393ddef7

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, false, false);
become_daemon(do_fork, !do_fork, !do_fork);
ignore_signal(SIGPIPE);
ignore_signal(SIGUSR1);