From 05df8528eaa5c4f163a38345f9e35fa398be9fda Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 7 Oct 2010 16:58:59 +0000 Subject: [PATCH] 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 --- support/ab.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.47.2