[next] telepathy-glib: tp_run_connection_manager: disable exit-on-close for CMs
Simon McVittie
smcv at kemper.freedesktop.org
Thu Mar 27 12:59:54 PDT 2014
Module: telepathy-glib
Branch: next
Commit: 0d88f0a525e9ac1b9dd9c861e0f9f84884fddc0d
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=0d88f0a525e9ac1b9dd9c861e0f9f84884fddc0d
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu Mar 27 17:33:31 2014 +0000
tp_run_connection_manager: disable exit-on-close for CMs
---
telepathy-glib/run.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/telepathy-glib/run.c b/telepathy-glib/run.c
index 5de43f7..43e5299 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);
More information about the telepathy-commits
mailing list