Skip to content

Commit 1d8332f

Browse files
committed
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 67bb2b5 ("linux: fix epoll_pwait() regression with < 2.6.19") which sadly exchanged one regression for another. PR-URL: #308 Reviewed-By: Saúl Ibarra Corretgé <[email protected]>
1 parent e2e218b commit 1d8332f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/linux-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void uv__io_poll(uv_loop_t* loop, int timeout) {
215215
if (pthread_sigmask(SIG_BLOCK, &sigset, NULL))
216216
abort();
217217

218-
if (sigmask != 0 && no_epoll_pwait == 0) {
218+
if (no_epoll_wait != 0 || (sigmask != 0 && no_epoll_pwait == 0)) {
219219
nfds = uv__epoll_pwait(loop->backend_fd,
220220
events,
221221
ARRAY_SIZE(events),

0 commit comments

Comments
 (0)