Fix: liblttng-ust process startup hang when sessiond is stopped
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 May 2013 13:49:05 +0000 (09:49 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 May 2013 15:32:36 +0000 (11:32 -0400)
commit844a1607dae98620641d4587c5db4b044e43c476
tree9579111879df1e17f14641f3944acb933388931c
parent2d6a253acc5c40b7d6a0f9d16b58a20046b07e9c
Fix: liblttng-ust process startup hang when sessiond is stopped

Ensure the listener thread owns socket and notify_socket, so they don't
have to hold the ust_lock() while connecting to the sessiond and reading
from this socket.

Therefore, after process fork, we can safely cleanup those retources,
because the thread has been removed by the operating system. On exit,
however, let the OS teardown those sockets, so exit path does not race
with the listener thread.

Fixes #545

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c
This page took 0.024469 seconds and 4 git commands to generate.