git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa34e8a
)
return 0 in the event script callback if it was aborted by a different script
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 28 Oct 2009 05:40:31 +0000
(16:40 +1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 28 Oct 2009 05:40:31 +0000
(16:40 +1100)
server/eventscript.c
patch
|
blob
|
history
diff --git
a/server/eventscript.c
b/server/eventscript.c
index 0fea281d500180f46e691dcc7037be55340a16d0..059094abb32bbf17726502131545d83d49675622 100644
(file)
--- a/
server/eventscript.c
+++ b/
server/eventscript.c
@@
-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;
}