diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.zig b/src/bun.zig index f20843ee6..6e0cfc87e 100644 --- a/src/bun.zig +++ b/src/bun.zig @@ -580,7 +580,7 @@ pub const DateTime = @import("./deps/zig-datetime/src/datetime.zig"); pub var start_time: i128 = 0; pub fn openDir(dir: std.fs.Dir, path_: [:0]const u8) !std.fs.IterableDir { - const fd = try std.os.openatZ(dir.fd, path_, std.os.O.DIRECTORY | 0, 0); + const fd = try std.os.openatZ(dir.fd, path_, std.os.O.DIRECTORY | std.os.O.CLOEXEC | 0, 0); return std.fs.IterableDir{ .dir = .{ .fd = fd } }; } pub const MimallocArena = @import("./mimalloc_arena.zig").Arena; |