summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-27 17:33:31 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-27 17:33:31 +0000
commit0d88f0a525e9ac1b9dd9c861e0f9f84884fddc0d (patch)
treee4eabe519179f8391a9a97aa7943d5a14bbdf1c4
parenta42cb564ec80ecf892a9df74520e84bd16805e9a (diff)
tp_run_connection_manager: disable exit-on-close for CMs
-rw-r--r--telepathy-glib/run.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/run.c b/telepathy-glib/run.c
index 5de43f73b..43e5299a0 100644
--- a/telepathy-glib/run.c
+++ b/telepathy-glib/run.c
@@ -260,6 +260,9 @@ tp_run_connection_manager (const char *prog_name,
(GCallback) no_more_connections, NULL);
connection = tp_proxy_get_dbus_connection (bus_daemon);
+ /* Exit gracefully (terminate the main loop) on close, rather
+ * than raising SIGTERM, so that valgrind can see our memory leaks */
+ g_dbus_connection_set_exit_on_close (connection, FALSE);
g_signal_connect (connection, "closed",
G_CALLBACK (gdbus_closed_cb), mainloop);