From e259c7ec60a84280dbf7e2cf041a6fec79f53e1f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 30 Sep 2011 20:19:44 -0700 Subject: Make FDinfo dynamically allocated We still allocate one fdinfo struct for every possible FD up front instead of resizing as needed, but they're much smaller now that we just have a pointer to the 32k buffer instead of including it directly in the fdinfo. Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston --- scope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scope.c') diff --git a/scope.c b/scope.c index 686be80..f66def2 100644 --- a/scope.c +++ b/scope.c @@ -933,7 +933,7 @@ SetUpStdin (void) */ static long clientNumber = 0; -struct fdinfo FDinfo[StaticMaxFD]; +struct fdinfo *FDinfo; void SetUpPair( -- cgit v1.2.1