Fix: main.c client/apps sockets and kernel_trace_fd close(0)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Mar 2012 17:10:32 +0000 (12:10 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Mar 2012 17:10:32 +0000 (12:10 -0500)
commita4b35e07e4711a49f764c3783aae22d7f0a33d65
tree86ec7e9a3e951e3c6620d43e0f906d95c8233d82
parent87eb4ab891dda35c54ffa95f356a4c4b198d8716
Fix: main.c client/apps sockets and kernel_trace_fd close(0)

thread_registration_apps and thread_manage_clients threads are closing
sock == 0 in error handling path, which is an error.

They also may use kernel_tracer_fd at 0 value if no kernel tracer has
been found. cleanup() can close this 0 socket too, which should never
happen.

Set all these sockets as "-1" when unset.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-sessiond/main.c
This page took 0.034653 seconds and 4 git commands to generate.