Add the sessiond notification-handling subsystem
[lttng-tools.git] / src / bin / lttng-sessiond / kernel-consumer.c
index 7582d80f0dea7eaf17d6d805eb680a4dbb657f15..2241acbcaa8ccdf2e6ad250a41ac2fc641ce964c 100644 (file)
@@ -338,7 +338,7 @@ int kernel_consumer_send_channel_stream(struct consumer_socket *sock,
 
        /* Send streams */
        cds_list_for_each_entry(stream, &channel->stream_list.head, list) {
-               if (!stream->fd) {
+               if (!stream->fd || stream->sent_to_consumer) {
                        continue;
                }
 
@@ -348,6 +348,7 @@ int kernel_consumer_send_channel_stream(struct consumer_socket *sock,
                if (ret < 0) {
                        goto error;
                }
+               stream->sent_to_consumer = true;
        }
 
 error:
This page took 0.023939 seconds and 5 git commands to generate.