ctdb-locking: Fork lock helper with vfork_with_logging()
commit7ae7a9c46301e4fed870516c448a79bb7a9ac53a
authorMartin Schwenke <martin@meltin.net>
Wed, 13 Aug 2014 05:01:54 +0000 (13 15:01 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 12 Sep 2014 06:46:14 +0000 (12 08:46 +0200)
tree2b68d7e603530f8b8d82970eb4462ee9957f489b
parent2e17b0ecddffb8590c4e8b9afaf1767ef7e8f89c
ctdb-locking: Fork lock helper with vfork_with_logging()

Otherwise errors printed by the lock helper get lost.

lock_helper_args() no longer adds the program name to the list of
arguments, since vfork_with_logging() does that.  Update the lock
helper to handle the extra log_fd parameter passed by
vfork_with_logging() and send stdout/stderr there.

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