Blame SOURCES/036-glib-compat.patch

60de42
From 3246a236f7d959455137cc0e56a6a9d78d3ba5ec Mon Sep 17 00:00:00 2001
60de42
From: Klaus Wenninger <klaus.wenninger@aon.at>
60de42
Date: Tue, 21 Mar 2017 02:54:50 +0100
60de42
Subject: [PATCH] Fix: pacemaker_remoted: Allow compilation with glib older
60de42
 2.36
60de42
60de42
---
60de42
 lrmd/main.c | 8 ++------
60de42
 1 file changed, 2 insertions(+), 6 deletions(-)
60de42
60de42
diff --git a/lrmd/main.c b/lrmd/main.c
60de42
index a3aa08f..0e1223c 100644
60de42
--- a/lrmd/main.c
60de42
+++ b/lrmd/main.c
60de42
@@ -382,12 +382,8 @@ void handle_shutdown_nack()
60de42
     if (shutting_down) {
60de42
         crm_info("Received shutdown nack");
60de42
         if (shutdown_ack_timer > 0) {
60de42
-            GSource *timer =
60de42
-                g_main_context_find_source_by_id(NULL, shutdown_ack_timer);
60de42
-
60de42
-            if (timer != NULL) {
60de42
-                g_source_set_ready_time(timer, 0);
60de42
-            }
60de42
+            g_source_remove(shutdown_ack_timer);
60de42
+            shutdown_ack_timer = g_timeout_add(0, lrmd_exit, NULL);
60de42
         }
60de42
         return;
60de42
     }
60de42
-- 
60de42
1.8.3.1
60de42