1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

return 0 in the event script callback if it was aborted by a different script

(This used to be ctdb commit 8d5cb2586a1d5a0255cc18295430927b914d4527)
This commit is contained in:
Ronnie Sahlberg 2009-10-28 16:40:31 +11:00
parent d82fdcb56f
commit f8a8c0d6e4

View File

@ -763,7 +763,7 @@ static int event_script_destructor(struct ctdb_event_script_state *state)
DEBUG(DEBUG_ERR,(__location__ " Sending SIGTERM to child pid:%d\n", state->child));
if (state->callback) {
state->callback(state->ctdb, -1, state->private_data);
state->callback(state->ctdb, 0, state->private_data);
state->callback = NULL;
}