]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Andrew Hoying <andrew_hoying@blm.gov>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 3 Dec 2008 04:10:58 +0000 (21:10 -0700)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 3 Dec 2008 04:10:58 +0000 (21:10 -0700)
Bug 2424: filedescriptors being left unnecessary opened

src/fs/ufs/store_io_ufs.cc

index 6158a315784ea57eb9df40b29dc5cb886622e1ff..85d435df1fa79a4fd32f33406db7f87de5e83fdb 100644 (file)
@@ -338,7 +338,7 @@ UFSStoreState::readCompleted(const char *buf, int len, int errflag, RefCount<Rea
         callback(cbdata, read_buf, len, this);
     }
 
-    if (theFile != NULL && theFile->error())
+    if (flags.try_closing || (theFile != NULL && theFile->error()) )
         tryClosing();
 }