mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
linux.zig: epoll_wait: pass kernel sigset size
Linux kernel syscalls expect to be given the number of bits of sigset that they're built for, not the full 1024-bit sigsets that glibc supports. I audited the other syscalls in here that use `sigset_t` and they're all using `NSIG / 8`. Fixes #12715
This commit is contained in:
parent
83e1ce1e00
commit
2a7683933a
@ -2221,7 +2221,7 @@ pub fn epoll_pwait(epoll_fd: i32, events: [*]epoll_event, maxevents: u32, timeou
|
||||
@as(usize, @intCast(maxevents)),
|
||||
@as(usize, @bitCast(@as(isize, timeout))),
|
||||
@intFromPtr(sigmask),
|
||||
@sizeOf(sigset_t),
|
||||
NSIG / 8,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user