aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-09 20:32:10 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-09 20:32:10 -0700
commitcef32c1123799ebaf1a4b28d893e27df627b1057 (patch)
tree949a0eef02c1d435d7d9492e2096e06a250ce879
parent50d4cedd92f91b9e108362eb802cdd5bf31b90f4 (diff)
downloadbun-cef32c1123799ebaf1a4b28d893e27df627b1057.tar.gz
bun-cef32c1123799ebaf1a4b28d893e27df627b1057.tar.zst
bun-cef32c1123799ebaf1a4b28d893e27df627b1057.zip
Don't set CLOEXEC
-rw-r--r--src/bun.js/api/bun/subprocess.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/api/bun/subprocess.zig b/src/bun.js/api/bun/subprocess.zig
index 9765737d4..6d7c133ac 100644
--- a/src/bun.js/api/bun/subprocess.zig
+++ b/src/bun.js/api/bun/subprocess.zig
@@ -911,19 +911,19 @@ pub const Subprocess = struct {
-1,
);
- const stdin_pipe = if (stdio[0].isPiped()) os.pipe2(std.os.O.CLOEXEC) catch |err| {
+ const stdin_pipe = if (stdio[0].isPiped()) os.pipe2(0) catch |err| {
globalThis.throw("failed to create stdin pipe: {s}", .{err});
return JSValue.jsUndefined();
} else undefined;
errdefer if (stdio[0].isPiped()) destroyPipe(stdin_pipe);
- const stdout_pipe = if (stdio[1].isPiped()) os.pipe2(std.os.O.CLOEXEC) catch |err| {
+ const stdout_pipe = if (stdio[1].isPiped()) os.pipe2(0) catch |err| {
globalThis.throw("failed to create stdout pipe: {s}", .{err});
return JSValue.jsUndefined();
} else undefined;
errdefer if (stdio[1].isPiped()) destroyPipe(stdout_pipe);
- const stderr_pipe = if (stdio[2].isPiped()) os.pipe2(std.os.O.CLOEXEC) catch |err| {
+ const stderr_pipe = if (stdio[2].isPiped()) os.pipe2(0) catch |err| {
globalThis.throw("failed to create stderr pipe: {s}", .{err});
return JSValue.jsUndefined();
} else undefined;