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:
parent
af69700853
commit
a4393ddef7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user