]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
repeat apr_pollset_poll() while it returns EINTR
authorJeff Trawick <trawick@apache.org>
Wed, 4 Mar 2009 18:34:17 +0000 (18:34 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 4 Mar 2009 18:34:17 +0000 (18:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@750094 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 25ea90789b5df17c18118d6305ce006af659869b..30a280a2fe3169caca6285c30922b6bd54c5cc24 100644 (file)
@@ -1699,7 +1699,9 @@ static void test(void)
         const apr_pollfd_t *pollresults;
 
         n = concurrency;
-        status = apr_pollset_poll(readbits, aprtimeout, &n, &pollresults);
+        do {
+            status = apr_pollset_poll(readbits, aprtimeout, &n, &pollresults);
+        } while (APR_STATUS_IS_EINTR(status));
         if (status != APR_SUCCESS)
             apr_err("apr_poll", status);