[gnome-builder/wip/chergert/multi-process] worker: ensure GDBusConnection:exit-on-close: is FALSE
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/multi-process] worker: ensure GDBusConnection:exit-on-close: is FALSE
- Date: Fri, 30 Oct 2015 20:15:14 +0000 (UTC)
commit 08e6edfaf1c44beaecb1db4c3393494477b8252e
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 30 13:15:07 2015 -0700
worker: ensure GDBusConnection:exit-on-close: is FALSE
We don't want a crashing client to potentially take us down with it. So
be defensive and ensure this is always set to false.
libide/ide-worker-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-worker-manager.c b/libide/ide-worker-manager.c
index 164eb62..ea06b33 100644
--- a/libide/ide-worker-manager.c
+++ b/libide/ide-worker-manager.c
@@ -84,6 +84,8 @@ ide_worker_manager_new_connection_cb (IdeWorkerManager *self,
g_assert (G_IS_DBUS_CONNECTION (connection));
g_assert (G_IS_DBUS_SERVER (server));
+ g_dbus_connection_set_exit_on_close (connection, FALSE);
+
credentials = g_dbus_connection_get_peer_credentials (connection);
if ((credentials == NULL) || (-1 == g_credentials_get_unix_pid (credentials, NULL)))
IDE_RETURN (FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]