Actions
Bug #316
closedlttng-sessiond and lttng-relayd file descriptor leak upon error
Start date:
07/24/2012
Due date:
% Done:
100%
Estimated time:
Description
In:
lttng-sessiond main.c:thread_manage_kernel()
lttng-sessiond main.c:thread_manage_apps()
lttng-relayd main.c:relay_thread_worker()
Upon error condition, the file descriptors used by poll are not closed.
This is not performed by lttng_poll_clean, and probably should not be, since the thread_quit_pipe is part of that poll array, and needs to be closed in the main() cleanup (only once). However, a finer-grained close of those file descriptors would be needed in the error handling of each function.
Actions