Backport: 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)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 21 Sep 2018 04:00:52 +0000 (00:00 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c

index 30eb5c7aee48a3a648686fd7c4745e82fe94954d..123731e171c662cef4e69f4bacedbd42681be508 100644 (file)
@@ -1073,9 +1073,8 @@ restart:
                                } else {
                                        assert(pollfd == control_sock->fd);
                                        type = RELAY_CONTROL;
                                } 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");
                                }
                                if (!newsock) {
                                        PERROR("accepting sock");
This page took 0.027749 seconds and 5 git commands to generate.