Blob Blame History Raw
From 0315c578905378726787c695d7d07188ba97f892 Mon Sep 17 00:00:00 2001
From: Andrew Beekhof <andrew@beekhof.net>
Date: Tue, 24 Mar 2015 07:48:51 +1100
Subject: [PATCH] Fix: systemd: Kindly ask dbus NOT to kill the process if the
 dbus connection fails

---
 lib/services/dbus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/services/dbus.c b/lib/services/dbus.c
index f44b590..0623168 100644
--- a/lib/services/dbus.c
+++ b/lib/services/dbus.c
@@ -533,6 +533,7 @@ pcmk_dbus_timeout_toggle(DBusTimeout *timeout, void *data){
 /* Inspired by http://www.kolej.mff.cuni.cz/~vesej3am/devel/dbus-select.c */
 
 void pcmk_dbus_connection_setup_with_select(DBusConnection *c){
+        dbus_connection_set_exit_on_disconnect (c, FALSE);
 	dbus_connection_set_timeout_functions(
             c, pcmk_dbus_timeout_add, pcmk_dbus_timeout_remove, pcmk_dbus_timeout_toggle, NULL, NULL);
 	dbus_connection_set_watch_functions(c, pcmk_dbus_watch_add, pcmk_dbus_watch_remove, pcmk_dbus_watch_toggle, NULL, NULL);
-- 
1.8.4.2