Blame SOURCES/bz1198886-0315c57-ask-dbus-not-to-kill-on-shutdown-2.patch
|
 |
80850c |
From 0315c578905378726787c695d7d07188ba97f892 Mon Sep 17 00:00:00 2001
|
|
 |
80850c |
From: Andrew Beekhof <andrew@beekhof.net>
|
|
 |
80850c |
Date: Tue, 24 Mar 2015 07:48:51 +1100
|
|
 |
80850c |
Subject: [PATCH] Fix: systemd: Kindly ask dbus NOT to kill the process if the
|
|
 |
80850c |
dbus connection fails
|
|
 |
80850c |
|
|
 |
80850c |
---
|
|
 |
80850c |
lib/services/dbus.c | 1 +
|
|
 |
80850c |
1 file changed, 1 insertion(+)
|
|
 |
80850c |
|
|
 |
80850c |
diff --git a/lib/services/dbus.c b/lib/services/dbus.c
|
|
 |
80850c |
index f44b590..0623168 100644
|
|
 |
80850c |
--- a/lib/services/dbus.c
|
|
 |
80850c |
+++ b/lib/services/dbus.c
|
|
 |
80850c |
@@ -533,6 +533,7 @@ pcmk_dbus_timeout_toggle(DBusTimeout *timeout, void *data){
|
|
 |
80850c |
/* Inspired by http://www.kolej.mff.cuni.cz/~vesej3am/devel/dbus-select.c */
|
|
 |
80850c |
|
|
 |
80850c |
void pcmk_dbus_connection_setup_with_select(DBusConnection *c){
|
|
 |
80850c |
+ dbus_connection_set_exit_on_disconnect (c, FALSE);
|
|
 |
80850c |
dbus_connection_set_timeout_functions(
|
|
 |
80850c |
c, pcmk_dbus_timeout_add, pcmk_dbus_timeout_remove, pcmk_dbus_timeout_toggle, NULL, NULL);
|
|
 |
80850c |
dbus_connection_set_watch_functions(c, pcmk_dbus_watch_add, pcmk_dbus_watch_remove, pcmk_dbus_watch_toggle, NULL, NULL);
|
|
 |
80850c |
--
|
|
 |
80850c |
1.8.4.2
|
|
 |
80850c |
|