diff options
Diffstat (limited to 'poll')
-rw-r--r-- | poll/unix/select.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/poll/unix/select.c b/poll/unix/select.c index 0392d07b7..a64ddbad9 100644 --- a/poll/unix/select.c +++ b/poll/unix/select.c @@ -131,6 +131,7 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, int num, return apr_get_netos_error(); } + (*nsds) = 0; for (i = 0; i < num; i++) { apr_os_sock_t fd; @@ -156,6 +157,9 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, int num, if (FD_ISSET(fd, &exceptset)) { aprset[i].rtnevents |= APR_POLLERR; } + if (aprset[i].rtnevents) { + (*nsds)++; + } } return APR_SUCCESS; |