On Sat, 2003-02-08 at 13:11, Tesla 13 wrote:
> Hello,
> 
> Issuing squid -k reconfigure or sending HUP signal to squid increases number 
> of open files. It looks like a new /etc/hosts is being opened each time 
> SIGHUP is sent without releasing the old one. 2.5-STABLE on a Redhat 8.0
> 
> Any ideas?

Good catch. Here's a patch to correct this.

Rob
-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.
Index: src/tools.cc
===================================================================
RCS file: /cvsroot/squid/squid3/src/tools.cc,v
retrieving revision 1.230
diff -u -p -r1.230 tools.cc
--- src/tools.cc	23 Jan 2003 00:37:27 -0000	1.230
+++ src/tools.cc	8 Feb 2003 02:28:22 -0000
@@ -996,6 +996,7 @@ parseEtcHosts(void)
       skip:
 	wordlistDestroy(&hosts);
     }
+    fclose (fp);
 }
 
 int

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to