ctdb-daemon: Make some conditions more explicit
authorMartin Schwenke <martin@meltin.net>
Wed, 29 Jan 2020 05:26:03 +0000 (16:26 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 10 Feb 2020 04:07:39 +0000 (04:07 +0000)
commita220e9454a6dd56f3b0f317d9b4361d0328ff79a
tree0d77c30340ca8c1e8fcd6c007ad966866bb8189d
parentcefb3327c67d7632fae9a931844671b43b0c2d90
ctdb-daemon: Make some conditions more explicit

These don't need to depend on do_fork.  Child logging should be set up
whenever the daemon is not interactive.  The stdin handler should be
setup whenever test mode is enabled.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_daemon.c