From 3c2f5adf41f0e75fd5e8f6661891dd7d4fa770a9 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 22 Dec 2025 14:37:41 -0800 Subject: std: integrate Io.Threaded with environment variables * std.option allows overriding the debug Io instance * if the default is used, start code initializes environ and argv0 also fix some places that needed recancel(), thanks mlugg! See #30562 --- lib/std/Thread.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/Thread.zig') diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index f25c664000..1900225099 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -322,7 +322,7 @@ pub fn getName(self: Thread, buffer_ptr: *[max_name_len:0]u8) GetNameError!?[]co var buf: [32]u8 = undefined; const path = try std.fmt.bufPrint(&buf, "/proc/self/task/{d}/comm", .{self.getHandle()}); - const io = Io.Threaded.global_single_threaded.ioBasic(); + const io = std.options.debug_io; const file = try Io.Dir.cwd().openFile(io, path, .{}); defer file.close(io); -- cgit v1.2.3