Fix: create/destroy a splice_pipe per stream
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index cbd1b5aac223962275b7be3472c7f498eb761077..6ec6acc6fa81465ea4c33a0f2de4b12ee64b42f2 100644 (file)
@@ -642,6 +642,10 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                switch (channel->output) {
                case CONSUMER_CHANNEL_SPLICE:
                        new_stream->output = LTTNG_EVENT_SPLICE;
+                       ret = utils_create_pipe(new_stream->splice_pipe);
+                       if (ret < 0) {
+                               goto end_nosignal;
+                       }
                        break;
                case CONSUMER_CHANNEL_MMAP:
                        new_stream->output = LTTNG_EVENT_MMAP;
This page took 0.039323 seconds and 4 git commands to generate.