mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
Work around D-Bus bug that involves dbus_shutdown() to call exit() when it shouldn't. Patch from Coling Guthrie
This commit is contained in:
parent
0b428e7cb1
commit
026a6bdd0e
1 changed files with 5 additions and 0 deletions
|
|
@ -54,6 +54,11 @@ int pa_polkit_check(const char *action_id) {
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* There seems to be a bug in 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))) {
|
if (!(caller = polkit_caller_new_from_pid(bus, getpid(), &dbus_error))) {
|
||||||
pa_log_error("Cannot get caller from PID: %s", dbus_error.message);
|
pa_log_error("Cannot get caller from PID: %s", dbus_error.message);
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue