diff options
author | Will Thompson <will@willthompson.co.uk> | 2012-01-17 17:39:31 +0000 |
---|---|---|
committer | Will Thompson <will@willthompson.co.uk> | 2012-01-17 17:39:31 +0000 |
commit | 6eb91c1c18d8d4ec0127a47a04a9a9ca5fefd2c5 (patch) | |
tree | 1a3614460e02fb624c98d6fb77501cf4cd743c54 /c-sources/pcap-monitor.c | |
parent | 91082d01ff3fb99e503b309f6bb4ac75ecc5dc9d (diff) |
Disable exit-on-close to work around a GLib bug.
Diffstat (limited to 'c-sources/pcap-monitor.c')
-rw-r--r-- | c-sources/pcap-monitor.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <https://bugzilla.gnome.org/show_bug.cgi?id=662100>. 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, |