From: adrian <> Date: Sun, 10 Sep 2006 09:20:37 +0000 (+0000) Subject: Bug 1579, 1475 - fix unlinkd to reduce the number of fd_set references X-Git-Tag: SQUID_3_0_PRE5~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eafef79065c9423239ee946dfcfea80ff63aa7e5;p=thirdparty%2Fsquid.git Bug 1579, 1475 - fix unlinkd to reduce the number of fd_set references Squid_MaxFD is limited to FD_SETSIZE because of the fd_set uses outside of the select(unix/windows) code. This patch removes one of the last remaining uses. --- diff --git a/src/unlinkd.cc b/src/unlinkd.cc index 931dc010a2..225738d004 100644 --- a/src/unlinkd.cc +++ b/src/unlinkd.cc @@ -1,6 +1,6 @@ /* - * $Id: unlinkd.cc,v 1.56 2006/09/03 18:47:18 serassio Exp $ + * $Id: unlinkd.cc,v 1.57 2006/09/10 03:20:37 adrian Exp $ * * DEBUG: section 2 Unlink Daemon * AUTHOR: Duane Wessels @@ -111,14 +111,7 @@ unlinkdUnlink(const char *path) * of the CPU's time. */ if (queuelen >= UNLINKD_QUEUE_LIMIT) { - - struct timeval to; - fd_set R; - FD_ZERO(&R); - FD_SET(unlinkd_rfd, &R); - to.tv_sec = 0; - to.tv_usec = 100000; - select(unlinkd_rfd + 1, &R, NULL, NULL, &to); + usleep(100000); } /*