summaryrefslogtreecommitdiff
path: root/poll/unix/select.c
diff options
context:
space:
mode:
authorminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2010-01-16 08:53:33 +0000
committerminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2010-01-16 08:53:33 +0000
commit1af01988a84a3342abfa0c03fdb4b9415c316107 (patch)
tree729a4bcec451d0a5b28f5871e3b18f6a913cd007 /poll/unix/select.c
parent2f005db8fd76f8bc51ee09ee4bd0512722bad846 (diff)
downloadlibapr-1af01988a84a3342abfa0c03fdb4b9415c316107.tar.gz
* Add apr_pollcb_wakeup(), with similar behavior to
apr_pollset_wakeup(). Along the way, refactor the code for creating/managing the wakeup pipe to a separate file, wakeup.c * Add apr_pollcb_method_name(), with similar behavior to apr_pollset_method_name() * Add minimal unit tests for apr_pollset_wakeup() and apr_pollcb_wakeup() apr_pollcb_wakeup() is supported with all the poll methods supported by pollcb (kqueue, epoll, poll, and event ports). Submitted by: Neil Conway <nrc@cs.berkeley.edu> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@899905 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll/unix/select.c')
-rw-r--r--poll/unix/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll/unix/select.c b/poll/unix/select.c
index 9288de00c..f4bd482d3 100644
--- a/poll/unix/select.c
+++ b/poll/unix/select.c
@@ -382,7 +382,7 @@ static apr_status_t impl_pollset_poll(apr_pollset_t *pollset,
else {
if ((pollset->flags & APR_POLLSET_WAKEABLE) &&
pollset->p->query_set[i].desc.f == pollset->wakeup_pipe[0]) {
- apr_pollset_drain_wakeup_pipe(pollset);
+ drain_wakeup_pipe(pollset->wakeup_pipe);
rv = APR_EINTR;
continue;
}