eventscript: fork() a child for each script.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 13:51:25 +0000 (00:21 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 13:51:25 +0000 (00:21 +1030)
commit0fafdcb8d3532a05846abaa5805b2e2f3cee8f47
treefbe6b1f391550eafe0b4fe9271e54ea2bff1968d
parent020fd21e0905e7f11400f6537988645987f2bb32
eventscript: fork() a child for each script.

We rename child_run_scripts() to child_run_script(), because it now
runs a single script rather than walking the list.  When it's
finished, we fork the next child from the ctdb_event_script_handler()
callback.

ctdb_control_event_script_init() and ctdb_control_event_script_finished()
are now called directly by the parent process; the child still calls
ctdb_ctrl_event_script_start() and ctdb_ctrl_event_script_stop() before
and after the script.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
server/eventscript.c