From 7977ce07470558dbc26b3bc97548aa6e263f4d4c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 22 Feb 2010 10:12:22 +0000 Subject: 27721: rationalise initialisation of file descriptors --- Src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/exec.c') 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) { -- cgit 1.4.1