From: Michael R Sweet Date: Fri, 4 Apr 2025 19:09:14 +0000 (-0400) Subject: Use a shorter poll/select timeout. X-Git-Tag: v2.4.12~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fad72818557e5ec389c4b78560ede09705dd289;p=thirdparty%2Fcups.git Use a shorter poll/select timeout. --- diff --git a/tools/ippfind.c b/tools/ippfind.c index 0e0c3735b5..a7b97604af 100644 --- a/tools/ippfind.c +++ b/tools/ippfind.c @@ -1317,7 +1317,7 @@ main(int argc, /* I - Number of command-line args */ FD_SET(fd, &sinput); stimeout.tv_sec = 0; - stimeout.tv_usec = 500000; + stimeout.tv_usec = 100000; if (select(fd + 1, &sinput, NULL, NULL, &stimeout) < 0) continue; @@ -2483,7 +2483,7 @@ poll_callback( (void)timeout; (void)context; - return (poll(pollfds, num_pollfds, 500)); + return (poll(pollfds, num_pollfds, 100)); } #endif /* HAVE_AVAHI */