Patch to close cgi-fcgi -f file descriptor

Kornél Pál <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi,

cgi-fcgi is currently leaking the file descriptor opened for -f file 
when forking the FastCGI application process.

Please commit the attached simple patch to SVN.

Thanks.

Kornél

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
cgi-fcgi.diff.txt (text/plain, 316 B)
--- cgi-fcgi.c.old	2003-06-22 04:02:33.000000000 +0200
+++ cgi-fcgi.c	2009-06-09 12:02:31.754341500 +0200
@@ -647,6 +647,7 @@
 			tp1 = tp2;
 		    }
 		}
+		fclose(fp);
 		err = ParseArgs(ac, av, doBindPtr, doStartPtr,
                         connectPathPtr, appPathPtr, nServersPtr);
 		for(x = 1; x < ac; x++) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.