| author | |
| committer | |
| log | 9646801bed8f0f36b59deecff32ef02868ed72f2 |
| tree | 0b943842028dfa962d9e9b779054bcf086d5bd12 |
| parent | 14e1e5f6d872a7a8a8d98fa48cc6f41f002a7d1f |
1 files changed, 4 insertions(+), 1 deletions(-)
lib/std/process/Preopens.zig+4-1| ... | ... | @@ -29,7 +29,10 @@ pub fn get(p: *const Preopens, name: []const u8) ?Resource { |
| 29 | 29 | switch (native_os) { |
| 30 | 30 | .wasi => { |
| 31 | 31 | const index = p.map.getIndex(name) orelse return null; |
| 32 | if (index <= 2) return .{ .file = .{ .handle = @intCast(index) } }; | |
| 32 | if (index <= 2) return .{ .file = .{ | |
| 33 | .handle = @intCast(index), | |
| 34 | .flags = .{ .nonblocking = false }, | |
| 35 | } }; | |
| 33 | 36 | return .{ .dir = .{ .handle = @intCast(index) } }; |
| 34 | 37 | }, |
| 35 | 38 | else => { |