File pacemaker-tools-dont-expect-reply-to-failed-send.patch of Package pacemaker.openSUSE_Leap_42.3_Update

commit 5aedfba1191dc9b8df3e020df94418bcf4bb0356
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Thu Nov 2 15:54:29 2017 -0500

    Low: tools: don't expect reply to failed send

diff --git a/tools/crm_resource_runtime.c b/tools/crm_resource_runtime.c
index fa8780403..76680e94e 100644
--- a/tools/crm_resource_runtime.c
+++ b/tools/crm_resource_runtime.c
@@ -673,7 +673,6 @@ cli_resource_delete(crm_ipc_t *crmd_channel, const char *host_uname,
      * single operation, we might wind up with a wrong idea of the current
      * resource state, and we might not re-probe the resource.
      */
-    crmd_replies_needed++;
     rc = send_lrm_rsc_op(crmd_channel, CRM_OP_LRM_DELETE, host_uname, rsc->id,
                          TRUE, data_set);
     if (rc != pcmk_ok) {
@@ -681,6 +680,7 @@ cli_resource_delete(crm_ipc_t *crmd_channel, const char *host_uname,
                rsc->id, host_uname, pcmk_strerror(rc));
         return rc;
     }
+    crmd_replies_needed++;
 
     crm_trace("Processing %d mainloop inputs", crmd_replies_needed);
     while(g_main_context_iteration(NULL, FALSE)) {
openSUSE Build Service is sponsored by