Skip to content

Commit 9ca73a1

Browse files
committed
Add flags to syscall
1 parent 4514e42 commit 9ca73a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cbits/posix/runProcess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void
2828
closefrom_excluding(int lowfd, int excludingFd) {
2929
// Try using the close_range syscall, provided in Linux kernel >= 5.9.
3030
// We do this directly because not all C libs provide a wrapper (like musl)
31-
long ret = syscall(SYS_close_range, lowfd, excludingFd - 1);
31+
long ret = syscall(SYS_close_range, lowfd, excludingFd - 1, 0);
3232

3333
if (ret != -1) {
3434
// If that worked, closefrom the remaining range

0 commit comments

Comments
 (0)