daemon: Initialize dbus to use thread-safe mode by default
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 12 Mar 2012 23:06:22 +0000 (00:06 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 13 Mar 2012 14:16:32 +0000 (16:16 +0200)
commit961a83a3fa2b2f98b37383f38b7a62a16e9cbe68
tree07199a2cb262b056d0eeffea8fb4ce7b46937572
parentfa80315b2cbde82226baa4325d93bb25d5365a3c
daemon: Initialize dbus to use thread-safe mode by default

In most cases, we use dbus from more than one thread, as we
e.g. enable real-time scheduling from the ALSA threads.
Therefore set dbus to thread-safe mode by default, as recommended
in https://bugs.freedesktop.org/show_bug.cgi?id=47060#c5

This fixes a bug where PulseAudio could crash in two parallel
calls to pa_make_realtime.

BugLink: https://bugs.launchpad.net/bugs/937933
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/daemon/main.c