linux: fix epoll_pwait() fallback on arm64
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 7 Apr 2015 12:22:50 +0000 (14:22 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 7 Apr 2015 14:30:09 +0000 (16:30 +0200)
commit264a8f3a1b1a46d813d244e811a6f6d12ad513ac
tree4ac59c87ba423cace3d22a8b8d96a0e807d1396f
parent3066f2c0c354dab263c381059921de8725f21da8
linux: fix epoll_pwait() fallback on arm64

arm64 doesn't have a epoll_wait() system call but a logic error stopped
libuv from falling back to epoll_pwait().

This bug was introduced in commit libuv/libuv@67bb2b5 ("linux: fix
epoll_pwait() regression with < 2.6.19") which sadly exchanged one
regression for another.

This commit is a back-port of libuv/libuv@1d8332f and should help
get the ARMv8 buildbot in better shape.

Original-PR-URL: https://github.com/libuv/libuv/pull/308
PR-URL: https://github.com/iojs/io.js/pull/1365
Reviewed-By: Fedor Indutny <fedor@indutny.com>
deps/uv/src/unix/linux-core.c