Fix: consumer should await for initial streams
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index f910f033d9ea96e283f3ee5705e6cf9d599efef8..5a219fc0b6c543d5c0f5270c3febd4ccfb4adb3a 100644 (file)
@@ -118,7 +118,8 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                new_channel = consumer_allocate_channel(msg.u.channel.channel_key,
                                -1, -1,
                                msg.u.channel.mmap_len,
-                               msg.u.channel.max_sb_size);
+                               msg.u.channel.max_sb_size,
+                               msg.u.channel.nb_init_streams);
                if (new_channel == NULL) {
                        lttng_consumer_send_error(ctx, LTTCOMM_CONSUMERD_OUTFD_ERROR);
                        goto end_nosignal;
This page took 0.031021 seconds and 4 git commands to generate.