eventscript: refactor forking code into fork_child_for_script()
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 13:52:55 +0000 (00:22 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 7 Dec 2009 13:52:55 +0000 (00:22 +1030)
commit814704a3286756d40c2a6c508c1c0b77fa711891
treee21167c0df12e7e4bc2dd04a97984a2de8e9a644
parent0fafdcb8d3532a05846abaa5805b2e2f3cee8f47
eventscript: refactor forking code into fork_child_for_script()

We do the same thing in two places: fire off a child from the initial
ctdb_event_script_callback_v() and also from the ctdb_event_script_handler()
when it's done.

Unify this logic into fork_child_for_script().

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