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.9.0~47 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=b0a841b4ff807dd29fe0cdbfe24900312f0e627b;hp=b0a841b4ff807dd29fe0cdbfe24900312f0e627b;p=urcu.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 ---