Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ fixtures/space folder/
.vscode/ipch/
yarn.lock
prebuilds/
_codeql_detected_source_root
2 changes: 1 addition & 1 deletion src/unix/pty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ SetCloseOnExec(int fd) {
static void
pty_close_inherited_fds() {
// Try close_range() first (Linux 5.9+, glibc 2.34+)
#if defined(SYS_close_range)
#if defined(SYS_close_range) && defined(CLOSE_RANGE_CLOEXEC)
if (syscall(SYS_close_range, 3, ~0U, CLOSE_RANGE_CLOEXEC) == 0) {
return;
}
Expand Down