| author | |
| committer | |
| log | 991560fb499afcbd7717f86edd475338c7d8d2b8 |
| tree | 4341a2205e6e96016e343d50167c230a0cd63949 |
| parent | f4e3631655c93ba31b768b7d232a305419c0fe67 |
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 #127151 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/linux.zig+1-1| ... | ... | @@ -2242,7 +2242,7 @@ pub fn epoll_pwait(epoll_fd: i32, events: [*]epoll_event, maxevents: u32, timeou |
| 2242 | 2242 | @as(usize, @intCast(maxevents)), |
| 2243 | 2243 | @as(usize, @bitCast(@as(isize, timeout))), |
| 2244 | 2244 | @intFromPtr(sigmask), |
| 2245 | @sizeOf(sigset_t), | |
| 2245 | NSIG / 8, | |
| 2246 | 2246 | ); |
| 2247 | 2247 | } |
| 2248 | 2248 |