diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2015-04-05 13:00:33 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2015-04-05 13:00:33 +0000 |
commit | 6950af322a63c511955ed1875d88a92817c58da1 (patch) | |
tree | 5ee0e9205f6b8c572ef7e7e7e4d70a1172161b85 /poll | |
parent | f5edbea87dd462013a473c1c015bf3aa45e605d5 (diff) | |
download | libapr-6950af322a63c511955ed1875d88a92817c58da1.tar.gz |
Merge r1671389 from trunk:
poll() implementation of apr_pollset_poll(): Return APR_EINTR as appropriate.
(APR_SUCCESS was returned instead in that scenario.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1671390 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r-- | poll/unix/poll.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c index d7a436fd9..0c32ad901 100644 --- a/poll/unix/poll.c +++ b/poll/unix/poll.c @@ -261,7 +261,7 @@ static apr_status_t impl_pollset_poll(apr_pollset_t *pollset, } ret = poll(pollset->p->pollset, pollset->nelts, timeout); #endif - (*num) = ret; + *num = 0; if (ret < 0) { return apr_get_netos_error(); } @@ -290,8 +290,7 @@ static apr_status_t impl_pollset_poll(apr_pollset_t *pollset, } } } - if (((*num) = j) > 0) - rv = APR_SUCCESS; + *num = j; } if (descriptors && (*num)) *descriptors = pollset->p->result_set; |