From: Mathieu Desnoyers Date: Mon, 6 Jul 2015 20:32:28 +0000 (-0400) Subject: Fix: handle sys_futex() FUTEX_WAIT interrupted by signal X-Git-Tag: v0.7.15~3 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=11eb040f24e020d05d65983d0f87f79b000c7b9f;hp=11eb040f24e020d05d65983d0f87f79b000c7b9f;p=userspace-rcu.git 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. Ensure that the futex compatibility layer returns meaningful errors and errno when using poll() or pthread cond variables. Reported-by: Gerd Gerats CC: Paul E. McKenney CC: Lai Jiangshan CC: Stephen Hemminger CC: Alan Stern CC: lttng-dev@lists.lttng.org CC: rp@svcs.cs.pdx.edu Signed-off-by: Mathieu Desnoyers ---