[lttng-dev] [LTTNG-TOOLS PATCH] Fix: close wait_fd on kernel tracing
Julien Desfossez
jdesfossez at efficios.com
Thu May 23 16:13:35 EDT 2013
The wait_fd in the kernel consumer streams was not closed causing a leak
of FDs in the consumer and never triggering the teardown mechanism in
the kernel tracer.
Signed-off-by: Julien Desfossez <jdesfossez at efficios.com>
---
src/common/consumer.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/common/consumer.c b/src/common/consumer.c
index 044a504..84865d3 100644
--- a/src/common/consumer.c
+++ b/src/common/consumer.c
@@ -463,6 +463,10 @@ void consumer_del_stream(struct lttng_consumer_stream *stream,
PERROR("munmap");
}
}
+ ret = close(stream->wait_fd);
+ if (ret) {
+ PERROR("close");
+ }
break;
case LTTNG_CONSUMER32_UST:
case LTTNG_CONSUMER64_UST:
--
1.7.10.4
More information about the lttng-dev
mailing list