Fix: create/destroy a splice_pipe per stream
[lttng-tools.git] / src / common / consumer-stream.c
index ba72dce01d770378e45bbea4c2e1fb2c05bed4b1..604e2f45deea228017e558a9f45e09244d1cb4fe 100644 (file)
@@ -29,6 +29,7 @@
 #include <common/kernel-consumer/kernel-consumer.h>
 #include <common/relayd/relayd.h>
 #include <common/ust-consumer/ust-consumer.h>
+#include <common/utils.h>
 
 #include "consumer-stream.h"
 
@@ -120,6 +121,9 @@ void consumer_stream_close(struct lttng_consumer_stream *stream)
                        }
                        stream->wait_fd = -1;
                }
+               if (stream->chan->output == CONSUMER_CHANNEL_SPLICE) {
+                       utils_close_pipe(stream->splice_pipe);
+               }
                break;
        case LTTNG_CONSUMER32_UST:
        case LTTNG_CONSUMER64_UST:
This page took 0.024584 seconds and 5 git commands to generate.