From eb7e3b07d3d8f207e2032c37201acf009c2e4671 Mon Sep 17 00:00:00 2001 From: "Yuriy M. Kaminskiy" Date: Tue, 29 Mar 2016 12:06:36 +1300 Subject: [PATCH] pinger: Fix select(2) to actually use max_fd --- src/icmp/pinger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3