------------------------------------------------------------ revno: 14017 revision-id: squid3@treenet.co.nz-20160401062324-39muywjvh25d95pw parent: squid3@treenet.co.nz-20160401061531-j6gfoo1umnsb27b0 author: Yuriy M. Kaminskiy committer: Amos Jeffries branch nick: 3.5 timestamp: Fri 2016-04-01 19:23:24 +1300 message: pinger: Fix select(2) to actually use max_fd ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20160401062324-39muywjvh25d95pw # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # testament_sha1: 094fb744620db5d7534d8fe75e773f6fa79ec648 # timestamp: 2016-04-01 06:50:57 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # base_revision_id: squid3@treenet.co.nz-20160401061531-\ # j6gfoo1umnsb27b0 # # Begin patch === modified file 'src/icmp/pinger.cc' --- src/icmp/pinger.cc 2016-01-01 00:14:27 +0000 +++ src/icmp/pinger.cc 2016-04-01 06:23:24 +0000 @@ -188,7 +188,7 @@ } 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) {