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 4514e42 commit 9ca73a1Copy full SHA for 9ca73a1
cbits/posix/runProcess.c
@@ -28,7 +28,7 @@ void
28
closefrom_excluding(int lowfd, int excludingFd) {
29
// Try using the close_range syscall, provided in Linux kernel >= 5.9.
30
// We do this directly because not all C libs provide a wrapper (like musl)
31
- long ret = syscall(SYS_close_range, lowfd, excludingFd - 1);
+ long ret = syscall(SYS_close_range, lowfd, excludingFd - 1, 0);
32
33
if (ret != -1) {
34
// If that worked, closefrom the remaining range
0 commit comments