From 4d34509d3033228d826dace0c52bee3263678eab Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 3 Jun 2013 15:22:39 +0100 Subject: [PATCH 1/2] Initialize libdbus for thread safety Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54972 --- src/telepathy-rakia.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/telepathy-rakia.c b/src/telepathy-rakia.c index 45c952c..305fd43 100644 --- a/src/telepathy-rakia.c +++ b/src/telepathy-rakia.c @@ -29,6 +29,9 @@ #include "rakia/debug.h" #include "sip-connection-manager.h" + +#include + #include #include @@ -47,6 +50,9 @@ main (int argc, char** argv) guint fatal_mask; const gchar *logfile_string; + if (!dbus_threads_init_default ()) + g_error ("Unable to initialize libdbus thread-safety (out of memory?)"); + fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK); fatal_mask |= G_LOG_LEVEL_CRITICAL; g_log_set_always_fatal (fatal_mask); -- 1.7.10.4