commit 86e9e32cf0d5a028d6ebb32f8d0f3d0a23e717b6 (tree)
parent a29d79313a0c62843694ea723723447661239110
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 22 Dec 2025 14:30:57 -0800
std.Io: fix missing try in waitTimeout
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Io.zig b/lib/std/Io.zig
@@ -1592,7 +1592,7 @@ pub const Event = enum(u32) {
// waiters would wake up when a *new waiter* was added. So it's easiest to just leave
// the state at `.waiting`---at worst it causes one redundant call to `futexWake`.
}
- io.futexWaitTimeout(Event, event, .waiting, timeout);
+ try io.futexWaitTimeout(Event, event, .waiting, timeout);
switch (@atomicLoad(Event, event, .acquire)) {
.unset => unreachable, // `reset` called before pending `wait` returned
.waiting => return error.Timeout,