[PATCH] unix: use libc-provided epoll_pwait wrapper
authorLuca Bruno <lucab@debian.org>
Tue, 12 May 2015 20:04:35 +0000 (22:04 +0200)
committerMattia Rizzolo <mattia@debian.org>
Sun, 23 Oct 2016 13:36:45 +0000 (14:36 +0100)
commit96e35edc16deeb71cae3e4b72063a96e57faf82e
treea16ce026cc41fd95b688e0b5bce2ea3c17c4145e
parente6adfb586e85dbeb99dd9dfabaef4af52bdea06c
[PATCH] unix: use libc-provided epoll_pwait wrapper

Bug-Debian: https://bugs.debian.org/841354

Signed-off-by: Luca Bruno <lucab@debian.org>
We now use epoll_pwait() wrapper from libc, which takes care
of passing proper sigset_t size to kernel.

This is more portable, as some arch have a larger sigmask and
kernel explicitely checks size parameter to match sizeof(sigset_t).
Spotted as a uv_loop_configure regression on MIPS.

This fixes #335.

Many thanks to Tobias Leich who amended this
patch to fix #841354

Gbp-Pq: Name mips-epoll_pwait.diff
src/unix/linux-core.c
src/unix/linux-syscalls.c
src/unix/linux-syscalls.h