From: Amitay Isaacs Date: Thu, 10 May 2018 08:49:06 +0000 (+1000) Subject: ctdb-common: Reset running state on failure X-Git-Tag: tevent-0.9.37~416 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4a5d610b8e81c78b7d98217bc87c4b815b4c4e7;p=thirdparty%2Fsamba.git ctdb-common: Reset running state on failure Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/common/run_event.c b/ctdb/common/run_event.c index 9ff18707715..44b0e7e4979 100644 --- a/ctdb/common/run_event.c +++ b/ctdb/common/run_event.c @@ -814,6 +814,7 @@ static void run_event_next_script(struct tevent_req *subreq) state->script_subreq = NULL; if (! status) { D_ERR("run_proc failed for %s, ret=%d\n", script->name, ret); + run_event_stop_running(state->run_ctx); tevent_req_error(req, ret); return; }