diff --git a/src/bun.js/bindings/bun-spawn.cpp b/src/bun.js/bindings/bun-spawn.cpp index f6f41414d3..407452ee38 100644 --- a/src/bun.js/bindings/bun-spawn.cpp +++ b/src/bun.js/bindings/bun-spawn.cpp @@ -116,11 +116,6 @@ extern "C" ssize_t posix_spawn_bun( return childFailed(); } - // Only close it if it's not the same as the other fd. - if (action.fds[0] != action.fds[1]) { - close(action.fds[0]); - } - current_max_fd = std::max(current_max_fd, action.fds[1]); break; }