apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r749023 - /apr/apr/trunk/poll/unix/kqueue.c
Date Sun, 01 Mar 2009 12:58:02 GMT
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;
+            }
         }
     }
 



Mime
View raw message