rtkit: Prevent libdbus crash

This commit is contained in:
David Henningsson 2012-03-25 07:59:23 +00:00
parent fb923cebe1
commit 52c8821294

View file

@ -335,6 +335,9 @@ int fluid_rtkit_make_realtime(pid_t thread, int priority) {
long long max_rttime;
struct rlimit old_limit, new_limit;
if (!dbus_threads_init_default())
return -ENOMEM;
/* Initialize system bus connection */
dbus_error_init(&error);
conn = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error);