Comment 8 for bug 71248

Revision history for this message
In , Sebastian Dröge (slomo) wrote :

Hi,
the attached piece of code deadlocks when called via sudo but works fine
otherwise. This is probably caused by DBUS_SESSION_BUS_ADDRESS pointing to a
socket for the session bus of the user calling sudo which is not owned by root.

When using dbus_threads_init_default() or not initializing threads at all it
doesn't deadlock but fails gracefully.

Bye