X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer-stream.c;h=a62cef272294d360953e5d685fca745d7509bcff;hp=8fe02e74eaa8dfe59b90ed4fbe2d6b4cf13b637b;hb=890d8fe47755c3bad936389cf48ffa141cff41c9;hpb=e5ca40eeb602ab82458d902b0ba4de87204d23b3 diff --git a/src/common/consumer-stream.c b/src/common/consumer-stream.c index 8fe02e74e..a62cef272 100644 --- a/src/common/consumer-stream.c +++ b/src/common/consumer-stream.c @@ -17,7 +17,7 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -28,6 +28,7 @@ #include #include #include +#include #include "consumer-stream.h" @@ -119,6 +120,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: