From 114b5ecaa01115f4f15acfd841dd437037b25423 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Tue, 20 Dec 2022 11:45:33 +0100 Subject: [PATCH] Fix the hacky way to point the correct epoll_event address Signed-off-by: Stacy Harper --- ev/+linux/loop.ha | 2 +- diff --git a/ev/+linux/loop.ha b/ev/+linux/loop.ha index 21988c887aebbed913d9622e35cc26f0835d494c..7011167d8b282e38f324df7f9675fbf984183616 100644 --- a/ev/+linux/loop.ha +++ b/ev/+linux/loop.ha @@ -82,7 +82,7 @@ maxev: int, millis, null)!; for (let i = 0; i < nevent; i += 1) { // XXX: https://todo.sr.ht/~sircmpwn/hare/783 - const ev = &(&loop.events[i]: *[*]u8)[12 * i]: *rt::epoll_event; + const ev = &(&loop.events[0]: *[*]u8)[12 * i]: *rt::epoll_event; const file = ev.data.ptr: *file; if (ev.events == 0) { continue; -- 2.48.1