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:30 +0000 (17:15 -0400)
commit1ab81a2e6d6000cca6247387c3815da7d7408e9d
tree0496b3c25a362b970c07a65b92a04b3c672ca302
parent703acab088a660b0df1ed21a25a7eeb9c6092b0e
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.024593 seconds and 4 git commands to generate.