summaryrefslogtreecommitdiff
path: root/Src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 02887e1aa..7ba80d986 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1928,7 +1928,7 @@ closeallelse(struct multio *mn)
int i, j;
long openmax;
- openmax = zopenmax();
+ openmax = fdtable_size;
for (i = 0; i < openmax; i++)
if (mn->pipe != i) {