ctdb-common: Switch to ETIMEDOUT from ETIME
[nivanova/samba-autobuild/.git] / ctdb / common / run_event.c
index 20e5be84dd2d9f2d52dcf00a9ebb7305f159ba3e..a2155500f289fc32279e3f7ee8fa708d2a99bc40 100644 (file)
@@ -844,11 +844,11 @@ static void run_event_next_script(struct tevent_req *subreq)
                if (! state->continue_on_failure) {
                        state->script_list->num_scripts = state->index + 1;
 
-                       if (script->summary == -ETIME && pid != -1) {
+                       if (script->summary == -ETIMEDOUT && pid != -1) {
                                run_event_debug(req, pid);
                        }
                        D_NOTICE("%s event %s\n", state->event_str,
-                                (script->summary == -ETIME) ?
+                                (script->summary == -ETIMEDOUT) ?
                                  "timed out" :
                                  "failed");
                        run_event_stop_running(state->run_ctx);