return 0 in the event script callback if it was aborted by a different script
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 28 Oct 2009 05:40:31 +0000 (16:40 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 28 Oct 2009 05:40:31 +0000 (16:40 +1100)
server/eventscript.c

index 0fea281d500180f46e691dcc7037be55340a16d0..059094abb32bbf17726502131545d83d49675622 100644 (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;
        }