diff options
author | 2022-12-29 21:53:04 -0800 | |
---|---|---|
committer | 2022-12-29 21:53:04 -0800 | |
commit | 8b0a7b9fb8377269866194e494d7b31dc395e3a3 (patch) | |
tree | 77961d265fe19e22c120f73d04d915c90126aa60 /src | |
parent | 2c5e1cb7d76404dc56b2511c8eac41856c99b169 (diff) | |
download | bun-8b0a7b9fb8377269866194e494d7b31dc395e3a3.tar.gz bun-8b0a7b9fb8377269866194e494d7b31dc395e3a3.tar.zst bun-8b0a7b9fb8377269866194e494d7b31dc395e3a3.zip |
Set CLOXEC
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; |