Fix: handle sys_futex() FUTEX_WAIT interrupted by signal
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 6 Jul 2015 21:28:34 +0000 (17:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 9 Jul 2015 23:52:07 +0000 (19:52 -0400)
commitc10e885e4082beb1cdc05a1eed4f5646d70edd71
treed1369b6808bdadca17f06fa2d6cd936674811e32
parentd81a925f99237cf9a2144e185d089e183a926b0d
Fix: handle sys_futex() FUTEX_WAIT interrupted by signal

We need to handle EINTR returned by sys_futex() FUTEX_WAIT, otherwise a
signal interrupting this system call could make sys_futex return too
early, and therefore cause a synchronization issue.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/futex.c
This page took 0.025448 seconds and 4 git commands to generate.