From: Yuriy M. Kaminskiy Date: Fri, 1 Apr 2016 06:23:24 +0000 (+1300) Subject: pinger: Fix select(2) to actually use max_fd X-Git-Tag: SQUID_3_5_16~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2441bc77219d419926fae2982fac654e1efac1ce;p=thirdparty%2Fsquid.git pinger: Fix select(2) to actually use max_fd --- diff --git a/src/icmp/pinger.cc b/src/icmp/pinger.cc index fa6d0730e4..f9d409c7df 100644 --- a/src/icmp/pinger.cc +++ b/src/icmp/pinger.cc @@ -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) {