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.3.2~3 X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=49740e56e556929b13a58bf16da509ace3a50fa5 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 225e25856..9595b8f1d 100644 --- a/src/bin/lttng-sessiond/kernel-consumer.c +++ b/src/bin/lttng-sessiond/kernel-consumer.c @@ -341,9 +341,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 */ @@ -357,6 +354,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: