From: Jeff Trawick Date: Wed, 4 Mar 2009 18:34:17 +0000 (+0000) Subject: repeat apr_pollset_poll() while it returns EINTR X-Git-Tag: 2.3.2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d551b7fc2abfbfc93b7724f7ab83fa1f89991340;p=thirdparty%2Fapache%2Fhttpd.git repeat apr_pollset_poll() while it returns EINTR git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@750094 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index 25ea90789b5..30a280a2fe3 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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);