Skip to content

Conversation

@xb-bx
Copy link
Contributor

@xb-bx xb-bx commented Sep 2, 2025

previous code uses epoll_pwait for arm64 & riscv64 and epoll_wait for other archs, but it uses it incorrectly.
The syscall expects timeout in milliseconds but the code passes Time_Spec
new code calls epoll_pwait for all archs with NULL sigmask so it will act as epoll_wait

updated:
also fixes EPoll_Event struct always being packed, it should be packed only for x86/x86_64

@xb-bx xb-bx changed the title fix(sys/linux): incorrect epoll_wait on arm64 & riscv64 fix(sys/linux): incorrect epoll_wait & EPoll_Data on arm64 & riscv64 Sep 2, 2025
@xb-bx
Copy link
Contributor Author

xb-bx commented Sep 2, 2025

force-pushed to fix the typo in the commit message

@xb-bx xb-bx changed the title fix(sys/linux): incorrect epoll_wait & EPoll_Data on arm64 & riscv64 fix(sys/linux): incorrect epoll_wait & EPoll_Event on arm64 & riscv64 Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant