Project

General

Profile

Actions

Bug #316

closed

lttng-sessiond and lttng-relayd file descriptor leak upon error

Added by Mathieu Desnoyers over 12 years ago. Updated about 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
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

Also available in: Atom PDF