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>
Tue, 24 Apr 2018 20:33:55 +0000 (16:33 -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 3a46c0fb914058d834b3693e1bf078416b515781..ddc6c7e62aeab3c5e058b0ddd0225eb76ffc1d1d 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 e0195a5db88e3bb82c5f6d031d15d7d0194f7e3a..0620c7e70f83b3d33ae9cf5ea64dd15316784657 100644 (file)
@@ -304,7 +304,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                5
+#define NR_LTTNG_SESSIOND_READY                6
 int lttng_sessiond_ready = NR_LTTNG_SESSIOND_READY;
 
 int sessiond_check_thread_quit_pipe(int fd, uint32_t events)
This page took 0.036356 seconds and 4 git commands to generate.