ctdb-tools-ctdb: Don't close stderr when running without_daemon commands
authorMartin Schwenke <martin@meltin.net>
Mon, 17 Mar 2014 02:28:14 +0000 (13:28 +1100)
committerAmitay Isaacs <amitay@samba.org>
Sun, 23 Mar 2014 03:20:14 +0000 (04:20 +0100)
commita947cf6c0c3e1453ec833033dcd2edaa9490a55b
tree614df72a698391eeaf86dd248f5a70b5e0b031e9
parent7fdb21cc321bc0b9a759393467fe42f26cdc812a
ctdb-tools-ctdb: Don't close stderr when running without_daemon commands

It looks like the original without_daemon code still tried to
establish a client connection to the daemon.  Closing stderr looks to
be a cheap way of hiding the errors when this failed.

However, later cleanups avoid the client connection altogether, so do
not close stderr.  Now debug output from without_daemon commands
actually appears.

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