Author: trawick
Date: Sun Mar 1 12:58:02 2009
New Revision: 749023
URL: http://svn.apache.org/viewvc?rev=749023&view=rev
Log:
Don't give the caller the list of returned events unless some event besides
the wakeup pipe occurred.
Modified:
apr/apr/trunk/poll/unix/kqueue.c
Modified: apr/apr/trunk/poll/unix/kqueue.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/kqueue.c?rev=749023&r1=749022&r2=749023&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/kqueue.c (original)
+++ apr/apr/trunk/poll/unix/kqueue.c Sun Mar 1 12:58:02 2009
@@ -288,10 +288,11 @@
j++;
}
}
- if ((*num = j))
+ if ((*num = j)) { /* any event besides wakeup pipe? */
rv = APR_SUCCESS;
- if (descriptors) {
- *descriptors = pollset->p->result_set;
+ if (descriptors) {
+ *descriptors = pollset->p->result_set;
+ }
}
}
|