[PATCH] ctdb-daemon: Fork lock helper with vfork_with_logging()

Martin Schwenke martin at meltin.net
Tue Aug 12 03:23:34 MDT 2014


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 and send
  stdout/stderr there.

* For simplicity, add an argc parameter to lock_helper_args().  To
  make this sane, also add an argv parameter and change the return
  type to bool.

Please review and push if OK.

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-daemon-Fork-lock-helper-with-vfork_with_logging.patch
Type: text/x-patch
Size: 7435 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140812/6d355352/attachment.bin>


More information about the samba-technical mailing list