diff options
Diffstat (limited to 'poll/unix')
-rw-r--r-- | poll/unix/poll.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c index 899aa71ab..a0aeaca36 100644 --- a/poll/unix/poll.c +++ b/poll/unix/poll.c @@ -217,6 +217,8 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, int num, apr_int32_t *n for (i = 0; i < num; i++) { apr_os_sock_t fd; + aprset[i].rtnevents = 0; + if (aprset[i].desc_type == APR_POLL_SOCKET) { #ifdef NETWARE if (HAS_PIPES(set_type)) { @@ -275,10 +277,6 @@ APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, int num, apr_int32_t *n } #endif - for (i = 0; i < num; i++) { - aprset[i].rtnevents = 0; - } - (*nsds) = rv; if ((*nsds) == 0) { return APR_TIMEUP; |