We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9379a84 commit 3619d8cCopy full SHA for 3619d8c
cbits/posix/runProcess.c
@@ -26,7 +26,7 @@ void
26
closefrom_excluding(int lowfd, int excludingFd) {
27
// Try using the close_range syscall, provided in Linux kernel >= 5.9.
28
// We do this directly because not all C libs provide a wrapper (like musl)
29
- long ret = syscall(SYS_close_range, lowfd, excludingFd - 1);
+ long ret = syscall(SYS_close_range, lowfd, excludingFd - 1, 0);
30
31
if (ret != -1) {
32
// If that worked, closefrom the remaining range
0 commit comments