diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index 3b06972d030..8247859f9b5 100644 --- a/ctdb/server/ctdb_daemon.c +++ b/ctdb/server/ctdb_daemon.c @@ -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);