File pacemaker-crmd-set-R_SHUTDOWN.patch of Package pacemaker.3577

commit fa70c39e15f4d33c91205a30177790dd17a7d007
Author: Andrew Beekhof <andrew@beekhof.net>
Date:   Tue Aug 9 15:01:42 2016 +1000

    Fix: crmd: Ensure the R_SHUTDOWN is set whenever we ask the DC to shut us down

diff --git a/crmd/control.c b/crmd/control.c
index 66d4579..5081dbd 100644
--- a/crmd/control.c
+++ b/crmd/control.c
@@ -213,6 +213,7 @@ do_shutdown_req(long long action,
 {
     xmlNode *msg = NULL;
 
+    set_bit(fsa_input_register, R_SHUTDOWN);
     crm_info("Sending shutdown request to %s", crm_str(fsa_our_dc));
     msg = create_request(CRM_OP_SHUTDOWN_REQ, NULL, NULL, CRM_SYSTEM_CRMD, CRM_SYSTEM_CRMD, NULL);
 
openSUSE Build Service is sponsored by