From 4ce9ff516705a70c0063b55c9ca976cd672770e2 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 25 Feb 2014 15:24:53 -0500 Subject: [PATCH] Fix: flag that kernel streams FDs has been sent Flag the session *after* every stream was successfully sent. Fixes #731 Signed-off-by: David Goulet --- src/bin/lttng-sessiond/kernel-consumer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bin/lttng-sessiond/kernel-consumer.c b/src/bin/lttng-sessiond/kernel-consumer.c index 38820af38..89c8760d2 100644 --- a/src/bin/lttng-sessiond/kernel-consumer.c +++ b/src/bin/lttng-sessiond/kernel-consumer.c @@ -378,9 +378,6 @@ int kernel_consumer_send_session(struct consumer_socket *sock, if (ret < 0) { goto error; } - - /* Flag that at least the metadata has been sent to the consumer. */ - session->consumer_fds_sent = 1; } /* Send channel and streams of it */ @@ -404,6 +401,7 @@ int kernel_consumer_send_session(struct consumer_socket *sock, DBG("Kernel consumer FDs of metadata and channel streams sent"); + session->consumer_fds_sent = 1; return 0; error: -- 2.34.1