relayd: track relayd control connection sockets
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 28 Jun 2018 05:16:56 +0000 (01:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jan 2020 19:46:10 +0000 (14:46 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: If5b0f85aac48bb04a08c95b76398b8f1b2ad98d8

src/bin/lttng-relayd/main.c

index 4410f4b6997bea79f0a753e9aaf119198eb34fd6..00292a02d6545db9d5b94cb4e08939e9b739a723 100644 (file)
@@ -1181,9 +1181,8 @@ restart:
                                } else {
                                        assert(pollfd == control_sock->fd);
                                        type = RELAY_CONTROL;
-                                       newsock = control_sock->ops->accept(control_sock);
-                                       DBG("Relay control connection accepted, socket %d",
-                                                       newsock->fd);
+                                       newsock = accept_relayd_sock(control_sock,
+                                                       "Control socket to relayd");
                                }
                                if (!newsock) {
                                        PERROR("accepting sock");
This page took 0.034967 seconds and 4 git commands to generate.