diff options
| author | Hiroaki Nakamura <hnakamur@gmail.com> | 2024-05-06 21:44:59 +0900 |
|---|---|---|
| committer | Hiroaki Nakamura <hnakamur@gmail.com> | 2024-05-06 21:44:59 +0900 |
| commit | df53fec828e79f73fc540a88d000dc1ba245281f (patch) | |
| tree | e301a9deb0dbc62dd11bb7c73a975209de7a890b /core | |
| parent | 15f7148eae89a36696916e15ed4c83fb7fed01c5 (diff) | |
sys/linux: Pass size to epoll_create
Without this fix, you can see a random size value is passed to
epoll_create by using strace.
Diffstat (limited to 'core')
| -rw-r--r-- | core/sys/linux/sys.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 63fb3b776..413c8742b 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -2314,7 +2314,7 @@ futex :: proc { */ epoll_create :: proc(size: i32 = 1) -> (Fd, Errno) { when ODIN_ARCH != .arm64 { - ret := syscall(SYS_epoll_create) + ret := syscall(SYS_epoll_create, i32(1)) return errno_unwrap(ret, Fd) } else { ret := syscall(SYS_epoll_create1, i32(0)) |