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:27:34 +0000 (11:27 -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 5019b1c9c69a9e50c0d2dd0ccd1c2cf630f5ca20..602db1ee4fb69bf686a0b78f036dc52517002ba3 100644 (file)
@@ -291,7 +291,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                4
+#define NR_LTTNG_SESSIOND_READY                5
 int lttng_sessiond_ready = NR_LTTNG_SESSIOND_READY;
 
 int sessiond_check_thread_quit_pipe(int fd, uint32_t events)
This page took 0.02781 seconds and 4 git commands to generate.