authorgravatar for 72784429+GereonV@users.noreply.github.comGereon V <72784429+GereonV@users.noreply.github.com> 2026-08-07 13:03:06+02:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-08-08 23:40:54+02:00
log5f2729a1a2ddbeb23ff6bd25c567d4ccd596af92
treeea7b56381cb86d2c3276dc3d9022cde513f585e8
parentc88f7285289b68aa627ad81ecccbca4fb4b62521

Fix O_NONBLOCK bug


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/Io/Threaded.zig+2-2
...@@ -4403,7 +4403,7 @@ fn dirCreateFilePosix(...@@ -4403,7 +4403,7 @@ fn dirCreateFilePosix(
4403 }4403 }
4404 };4404 };
44054405
4406 fl_flags |= @as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK"));4406 fl_flags &= ~@as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK"));
44074407
4408 const syscall: Syscall = try .start();4408 const syscall: Syscall = try .start();
4409 while (true) {4409 while (true) {
...@@ -4999,7 +4999,7 @@ fn dirOpenFilePosix(...@@ -4999,7 +4999,7 @@ fn dirOpenFilePosix(
4999 }4999 }
5000 };5000 };
50015001
5002 fl_flags |= @as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK"));5002 fl_flags &= ~@as(usize, 1 << @bitOffsetOf(posix.O, "NONBLOCK"));
50035003
5004 const syscall: Syscall = try .start();5004 const syscall: Syscall = try .start();
5005 while (true) {5005 while (true) {