summaryrefslogtreecommitdiffstats
path: root/src/daemon/polkit.c
diff options
context:
space:
mode:
authorColin Guthrie <pulse@colin.guthr.ie>2008-08-03 19:56:49 +0100
committerColin Guthrie <pulse@colin.guthr.ie>2008-08-03 19:56:49 +0100
commit5744237a066186be305be9ea3ecb3ccccadcceca (patch)
tree6a08957a66fb308a8f1b37232d9b2d24a246e394 /src/daemon/polkit.c
parentb30a5d601eaffd98914ca0b9fdecd863eade0b4f (diff)
parent04ffac57a67eee9640f248b6fab33ee8367b0eab (diff)
Merge branch 'master' of git://git.0pointer.de/pulseaudio
Diffstat (limited to 'src/daemon/polkit.c')
-rw-r--r--src/daemon/polkit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/polkit.c b/src/daemon/polkit.c
index 256e3199..08155cf2 100644
--- a/src/daemon/polkit.c
+++ b/src/daemon/polkit.c
@@ -54,6 +54,11 @@ int pa_polkit_check(const char *action_id) {
goto finish;
}
+ /* There seems to be a bug in some versions of D-Bus that causes
+ * dbus_shutdown() to call exit() when a connection without this
+ * flag disabled was created during runtime.*/
+ dbus_connection_set_exit_on_disconnect(bus, FALSE);
+
if (!(caller = polkit_caller_new_from_pid(bus, getpid(), &dbus_error))) {
pa_log_error("Cannot get caller from PID: %s", dbus_error.message);
goto finish;