Fix: handle sys_futex EINTR and EWOULDBLOCK
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 6 Jul 2015 21:09:32 +0000 (17:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 6 Jul 2015 21:15:34 +0000 (17:15 -0400)
commitfaccc28ac2aa16092117eae5181fce79fff98396
tree595efd2ccbf36c57aac36f6f9c31ab3564c605cd
parent90c4caed9e31fb3d7779b19f2841b59d1928b00a
Fix: handle sys_futex EINTR and EWOULDBLOCK

Handling sys_futex EINTR allows us to retry waiting on the futex
immediately if we are interrupted by a signal without having to try
connecting to the session daemon.

This should not impact correctness though, as the wait scheme would
simply try to connect, fail, and try waiting again.

Also handle errors on FUTEX_WAKE.

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