Project

General

Profile

Actions

Bug #316

closed

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

Added by Mathieu Desnoyers almost 12 years ago. Updated over 11 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 #1

Updated by David Goulet over 11 years ago

  • Target version set to 2.1 stable
Actions #2

Updated by Anonymous over 11 years ago

  • Description updated (diff)

Edited description for less wall of text.

Actions #3

Updated by David Goulet over 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF