From: David Goulet Date: Tue, 25 Feb 2014 20:24:53 +0000 (-0500) Subject: Fix: flag that kernel streams FDs has been sent X-Git-Tag: v2.4.0~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b4a9acf718fc2e2ac30d84bd0b9a05cdfeb1ca97;p=lttng-tools.git 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 --- 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: