From: robertc <> Date: Mon, 27 Dec 2004 17:25:32 +0000 (+0000) Subject: cherry pick bugfix: cannot close all file descriptors from store refactoring work X-Git-Tag: SQUID_3_0_PRE4~938 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8214fc7d4425e00bafb2a0caeb876b720d0c434;p=thirdparty%2Fsquid.git cherry pick bugfix: cannot close all file descriptors from store refactoring work --- diff --git a/src/fd.cc b/src/fd.cc index 4fe2d3fb0c..1c1243bada 100644 --- a/src/fd.cc +++ b/src/fd.cc @@ -1,6 +1,6 @@ /* - * $Id: fd.cc,v 1.50 2004/04/03 14:25:59 hno Exp $ + * $Id: fd.cc,v 1.51 2004/12/27 10:25:32 robertc Exp $ * * DEBUG: section 51 Filedescriptor Functions * AUTHOR: Duane Wessels @@ -82,7 +82,7 @@ fdUpdateBiggest(int fd, int opening) */ assert(!opening); - while (!fd_table[Biggest_FD].flags.open) + while (Biggest_FD >= 0 && !fd_table[Biggest_FD].flags.open) Biggest_FD--; }