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