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@gmail.com>
Wed, 26 Mar 2014 02:58:28 +0000 (13:58 +1100)
commit60cf52e64c1be74206d09b55f9603c9ea2cb5c33
treec20c3cb80e06304e040fce3bda77eb4f1bf232da
parentd8cb269cea70df9900b55c7381b02d1a83f0dac2
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>
(Imported from commit a947cf6c0c3e1453ec833033dcd2edaa9490a55b)
tools/ctdb.c