]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ab: repeat apr_pollset_poll() while APR_STATUS_IS_EINTR(rv)
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 7 Oct 2010 16:58:59 +0000 (16:58 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 7 Oct 2010 16:58:59 +0000 (16:58 +0000)
Backports: r750094
Submitted by: trawick
Reviewed by: sf, wrowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1005524 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

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