]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use a shorter poll/select timeout.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 4 Apr 2025 19:09:14 +0000 (15:09 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 4 Apr 2025 19:10:10 +0000 (15:10 -0400)
tools/ippfind.c

index 0e0c3735b568f5b448d30508e5c250a8c2cef429..a7b97604afbd6c7fd4b081283da01d3548c5e9ea 100644 (file)
@@ -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 */