From: Simon McVittie Date: Thu, 22 Jun 2017 16:58:42 +0000 (+0100) Subject: bus/containers: Set up new connections to join the bus X-Git-Tag: dbus-1.13.0~57^2~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0fbde54ab8f4a01cc760817cc0386c0006ec3a7;p=thirdparty%2Fdbus.git bus/containers: Set up new connections to join the bus Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354 --- diff --git a/bus/containers.c b/bus/containers.c index a59226b73..5bb8fc6a4 100644 --- a/bus/containers.c +++ b/bus/containers.c @@ -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 *