From: Yuriy M. Kaminskiy Date: Mon, 28 Mar 2016 23:06:36 +0000 (+1300) Subject: pinger: Fix select(2) to actually use max_fd X-Git-Tag: SQUID_4_0_8~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb7e3b07d3d8f207e2032c37201acf009c2e4671;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) {