diff --git a/src/bun.js/bindings/c-bindings.cpp b/src/bun.js/bindings/c-bindings.cpp index f77f9e6bb5..6526c9eb31 100644 --- a/src/bun.js/bindings/c-bindings.cpp +++ b/src/bun.js/bindings/c-bindings.cpp @@ -409,7 +409,7 @@ extern "C" void bun_initialize_process() // This is less of an issue for macOS due to posix_spawn // This is best effort, not all linux kernels support close_range or CLOSE_RANGE_CLOEXEC // To avoid breaking --watch, we skip stdin, stdout, stderr and IPC. - bun_close_range(0, ~0U, CLOSE_RANGE_CLOEXEC); + bun_close_range(4, ~0U, CLOSE_RANGE_CLOEXEC); #endif #if OS(LINUX) || OS(DARWIN)