]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
bus/containers: Set up new connections to join the bus
authorSimon McVittie <smcv@collabora.com>
Thu, 22 Jun 2017 16:58:42 +0000 (17:58 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 12 Dec 2017 16:22:29 +0000 (16:22 +0000)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354

bus/containers.c

index a59226b73889719874d64ea15766aa17528f73e7..5bb8fc6a4d0ce1d45cd9b1ec518db00f9c8ab47a 100644 (file)
@@ -289,7 +289,11 @@ new_connection_cb (DBusServer     *server,
                    DBusConnection *new_connection,
                    void           *data)
 {
-  /* TODO: handle new connection */
+  BusContainerInstance *instance = data;
+
+  /* If this fails it logs a warning, so we don't need to do that */
+  if (!bus_context_add_incoming_connection (instance->context, new_connection))
+    return;
 }
 
 static const char *