]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
pinger: Fix select(2) to actually use max_fd
authorYuriy M. Kaminskiy <yumkam@gmail.com>
Mon, 28 Mar 2016 23:06:36 +0000 (12:06 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 28 Mar 2016 23:06:36 +0000 (12:06 +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) {