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)
commit69c30c6ba0fb53907b3b916a587adc209f46476f
tree81b49b33c3a3bf102864ff2266add71dbc5b55ab
parentdd53eee7a2f354a9fc9ba52bd3afd30658dbd0a3
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>
(This used to be ctdb commit 814704a3286756d40c2a6c508c1c0b77fa711891)
ctdb/server/eventscript.c