mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Don't close the file descriptor since close_range will get it anyway
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user