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:31:16 +0000 (11:31 -0400)
commit5b14aab38abe095cf5885aba2f0a1cdaed36729b
tree5b7858f225325fd0a847ba657cdafef39b082759
parent2e3906003540b455b473ce06fdde4ba38208e4b0
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.025417 seconds and 4 git commands to generate.