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:04:52 +0000 (10:04 -0700)
commit3beaf0041b430820d2f727fa601c13f95522b55e
treeb195fd9aa2dbae6a97f8f0aa58f643940e19eedd
parent1e5c497c04f73827abd6cfdc8a0e8d1ffc859d3e
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.024483 seconds and 4 git commands to generate.