Fix: application exit race with pthread cancel
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 17 Aug 2015 16:50:34 +0000 (09:50 -0700)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 17 Aug 2015 17:05:37 +0000 (10:05 -0700)
commit105f9cd955808d491186e72ee6e760476a9647c1
treea0fbfdcaf0a759602f53ac1a219d358402c0740a
parent697e882bdceb684e24a64efda9f2a8e3d96102a7
Fix: application exit race with pthread cancel

Listener threads can be cancelled with ust lock held, which can hang the
following ust cleanup routine, because tracepoint probe unregister needs
to take the ust lock.

Fix this by disabling pthread cancellation for the entire duration of
the ust lock.

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