Skip to content

Commit 3619d8c

Browse files
committed
Add flags to syscall
1 parent 9379a84 commit 3619d8c

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
@@ -26,7 +26,7 @@ void
2626
closefrom_excluding(int lowfd, int excludingFd) {
2727
// Try using the close_range syscall, provided in Linux kernel >= 5.9.
2828
// We do this directly because not all C libs provide a wrapper (like musl)
29-
long ret = syscall(SYS_close_range, lowfd, excludingFd - 1);
29+
long ret = syscall(SYS_close_range, lowfd, excludingFd - 1, 0);
3030

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

0 commit comments

Comments
 (0)