ctdb-daemon: Open eventd pipe earlier
authorMartin Schwenke <martin@meltin.net>
Mon, 27 Aug 2018 04:44:24 +0000 (14:44 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 30 Aug 2018 02:48:56 +0000 (04:48 +0200)
commitc446ae5e1382d5e32c33ce92243daf6b4338e15a
tree2975f48adbec377c15488deac9b6c942b874f37e
parente357b62fe556609750bdb8d27cf48dfb85c62ec8
ctdb-daemon: Open eventd pipe earlier

The pipe will soon be needed earlier, so initialise it earlier.
Ensure the file descriptors are closed on error.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13592

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