Fix: flag that kernel streams FDs has been sent
authorDavid Goulet <dgoulet@efficios.com>
Tue, 25 Feb 2014 20:24:53 +0000 (15:24 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 25 Feb 2014 20:33:56 +0000 (15:33 -0500)
Flag the session *after* every stream was successfully sent.

Fixes #731

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/kernel-consumer.c

index 38820af3811e1893ba8a5f6c6109c31599fb7838..89c8760d2673bbda82f20ef2b308b95f7ec3d17f 100644 (file)
@@ -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:
This page took 0.026764 seconds and 4 git commands to generate.