1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/include
Rusty Russell 23e24c503c eventscript: ctdb_fork_with_logging()
A new helper functions which sets up an event attached to the child's
stdout/stderr which gets routed to the logging callback after being
placed in the normal logs.

This is a generalization of the previous code which was hardcoded to
call ctdb_log_event_script_output.

The only subtlety is that we hang the child fds off the output buffer;
the destructor for that will flush, which means it has to be destroyed
before the output buffer is.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>


(This used to be ctdb commit 32cfdc3aec34272612f43a3588e4cabed9c85b68)
2009-12-08 12:44:30 +10:30
..
cmdline.h moved cmdline.c to common code 2007-04-17 22:16:50 +10:00
ctdb_private.h eventscript: ctdb_fork_with_logging() 2009-12-08 12:44:30 +10:30
ctdb.h eventscript: use -ENOEXEC for disabled status value 2009-12-07 23:11:47 +10:30
idtree.h - added in idtree for efficient reqid handling 2006-11-28 20:48:34 +11:00
includes.h Dont store debug level DEBUG_DEBUG in the in-memory ringbuffer. 2009-12-04 11:45:37 +11:00