From 6eb91c1c18d8d4ec0127a47a04a9a9ca5fefd2c5 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Tue, 17 Jan 2012 17:39:31 +0000 Subject: Disable exit-on-close to work around a GLib bug. --- c-sources/pcap-monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/c-sources/pcap-monitor.c b/c-sources/pcap-monitor.c index cd1a687..c642813 100644 --- a/c-sources/pcap-monitor.c +++ b/c-sources/pcap-monitor.c @@ -458,6 +458,12 @@ initable_init ( return FALSE; } + /* Work around . With glib + * 2.30.1, the client closing the connection erroneously triggers the + * (implicitly enabled) exit-on-close logic. + */ + g_dbus_connection_set_exit_on_close (priv->connection, FALSE); + priv->caps = g_dbus_connection_get_capabilities (priv->connection); bus = g_dbus_proxy_new_sync (priv->connection, -- cgit v1.2.3