From 2daade39a9e5e7b968cb1efa22cd49a956471b1b Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Tue, 9 Jan 2024 03:33:58 -0800 Subject: [PATCH] Don't close the file descriptor since close_range will get it anyway --- src/bun.js/bindings/bun-spawn.cpp | 5 ----- 1 file changed, 5 deletions(-) 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; }