X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkernel-consumer.c;h=89c8760d2673bbda82f20ef2b308b95f7ec3d17f;hp=38820af3811e1893ba8a5f6c6109c31599fb7838;hb=4ce9ff516705a70c0063b55c9ca976cd672770e2;hpb=1c1c3634276842a00492e24c3adcf847ae21edc3 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: