]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
pinger: Fix select(2) to actually use max_fd
authorYuriy M. Kaminskiy <yumkam@gmail.com>
Fri, 1 Apr 2016 06:23:24 +0000 (19:23 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Apr 2016 06:23:24 +0000 (19:23 +1300)
src/icmp/pinger.cc

index fa6d0730e4314f5d1d7931ed15dfd7f184762713..f9d409c7dfedf8637f9e12a11d56d401129a51a1 100644 (file)
@@ -188,7 +188,7 @@ main(int argc, char *argv[])
         }
 
         FD_SET(squid_link, &R);
-        x = select(10, &R, NULL, NULL, &tv);
+        x = select(max_fd+1, &R, NULL, NULL, &tv);
         getCurrentTime();
 
         if (x < 0) {