From 5f2729a1a2ddbeb23ff6bd25c567d4ccd596af92 Mon Sep 17 00:00:00 2001 From: Gereon V <72784429+GereonV@users.noreply.github.com> Date: Fri, 7 Aug 2026 13:03:06 +0200 Subject: [PATCH] Fix O_NONBLOCK bug --- lib/std/Io/Threaded.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index bcbc1ec9cc5351ee540546ccdb72d7151a0ed2f9..eafcfb931b81bbe4a69a6bffd285c448aee8b605 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -4403,7 +4403,7 @@ fn dirCreateFilePosix( } }; - fl_flags |= @as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK")); + fl_flags &= ~@as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK")); const syscall: Syscall = try .start(); while (true) { @@ -4999,7 +4999,7 @@ fn dirOpenFilePosix( } }; - fl_flags |= @as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK")); + fl_flags &= ~@as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK")); const syscall: Syscall = try .start(); while (true) { -- 2.54.0