summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2015-04-06 11:26:42 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2015-04-06 11:26:42 +0000
commit242a80324cefdc5cc392d3ff4884e8aa44b75b50 (patch)
tree003e5d219574c50d0fc49e35293062e45f6c3809 /poll
parentaea64e830ddfc86a0a862c5422934ffdb6624163 (diff)
downloadlibapr-242a80324cefdc5cc392d3ff4884e8aa44b75b50.tar.gz
Revert r1671389; apr_pollset_poll() should return APR_SUCCESS
and the real event if a real event occurs AND apr_pollset_wakeup() is called before apr_pollset_poll() is called and/or awakened. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1671513 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/poll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c
index b9c41f38b..9f7ef2410 100644
--- a/poll/unix/poll.c
+++ b/poll/unix/poll.c
@@ -290,7 +290,9 @@ static apr_status_t impl_pollset_poll(apr_pollset_t *pollset,
}
}
}
- *num = j;
+ if ((*num = j)) { /* any event besides wakeup pipe? */
+ rv = APR_SUCCESS;
+ }
}
if (descriptors && (*num))
*descriptors = pollset->p->result_set;