summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2015-04-06 11:26:42 +0000
committerJeff Trawick <trawick@apache.org>2015-04-06 11:26:42 +0000
commitfedd9082b7098cc50153a77d0b663a3136fec1af (patch)
tree003e5d219574c50d0fc49e35293062e45f6c3809 /poll
parent7894814f111847b7b017f89e9c2a46f672059f81 (diff)
downloadapr-fedd9082b7098cc50153a77d0b663a3136fec1af.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: https://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;