]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug #1177: Don't close all "other" filedescriptors
authorhno <>
Mon, 27 Dec 2004 23:59:14 +0000 (23:59 +0000)
committerhno <>
Mon, 27 Dec 2004 23:59:14 +0000 (23:59 +0000)
commit0d3036f56b6156ef83453fb7c51548a69ac79ce3
tree8c34027aeca6176d7a71f13e849efc8c30756f8e
parent380963c294d2a0f611cd5767d1486ea8a09367de
Bug #1177: Don't close all "other" filedescriptors

Currently when Squid is started it forcibly closes all "other" filedescriptors
other than stdin/stdout/stderr. While this is a reasonable security precaution
to clean up filedescriptor leakage from the caller it crashes some SSL libraries
and possibly other functions which opens internal filedescriptors on startup or
while the configuration is parsed.

It also causes problems for daemontools or other service monitors monitoring
the daemon by keeping a unused pipe open to the daemon process.
src/main.cc