From: William A. Rowe Jr Date: Thu, 7 Oct 2010 16:58:59 +0000 (+0000) Subject: ab: repeat apr_pollset_poll() while APR_STATUS_IS_EINTR(rv) X-Git-Tag: 2.2.17~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05df8528eaa5c4f163a38345f9e35fa398be9fda;p=thirdparty%2Fapache%2Fhttpd.git ab: repeat apr_pollset_poll() while APR_STATUS_IS_EINTR(rv) 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 --- diff --git a/support/ab.c b/support/ab.c index 8a12087972a..ce8b2099612 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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);