Fix: agent may not be ready on launch
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 23 Apr 2018 20:36:25 +0000 (16:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Apr 2018 15:42:10 +0000 (11:42 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/agent-thread.c
src/bin/lttng-sessiond/main.c

index 39d2ec4a05bd1297c31e2ac7036600772ea38ffa..4d53d6e09286a8d4968b38ac458ba80e64077705 100644 (file)
@@ -248,6 +248,7 @@ void *agent_thread_manage_registration(void *data)
        }
 
        reg_sock = init_tcp_socket();
+       sessiond_notify_ready();
        if (!reg_sock) {
                goto error_tcp_socket;
        }
index 3c2d2a756b71b704666b3d5b81792d9c02c50708..b4d82f3bfce4ce748e0d697d54b9161340304c0c 100644 (file)
@@ -313,7 +313,7 @@ struct lttng_ht *agent_apps_ht_by_sock = NULL;
  * NR_LTTNG_SESSIOND_READY must match the number of calls to
  * sessiond_notify_ready().
  */
-#define NR_LTTNG_SESSIOND_READY                3
+#define NR_LTTNG_SESSIOND_READY                4
 int lttng_sessiond_ready = NR_LTTNG_SESSIOND_READY;
 
 int sessiond_check_thread_quit_pipe(int fd, uint32_t events)
This page took 0.029001 seconds and 4 git commands to generate.