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.5.0-rc1~153 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=4ce9ff516705a70c0063b55c9ca976cd672770e2 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: