fix: on exit, leave thread/mmap reclaim to OS
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 22:01:33 +0000 (17:01 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Feb 2012 22:01:33 +0000 (17:01 -0500)
commitefe0de097e8e1cd372a7eb926e0ec68b97e6ee50
tree958e3d3cbf33da1bad37442b8742e7ad668911e0
parentf5f945327fae820ca1eb38685409c60be2047878
fix: on exit, leave thread/mmap reclaim to OS

Do NOT join threads: use of sys_futex makes it impossible to join the
threads without using async-cancel, but async-cancel is delivered by a
signal, which could hit the target thread anywhere in its code path,
including while the ust_lock() is held, causing a deadlock for the other
thread. Let the OS cleanup the threads if there are stalled in a
syscall.

wait_shm_mmap is used by listener threads outside of the ust lock, so we
cannot tear it down ourselves, because we cannot join on these threads.
Leave this task to the OS process exit.

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