apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r749021 - /apr/apr/trunk/poll/unix/kqueue.c
Date Sun, 01 Mar 2009 12:55:14 GMT
Author: trawick
Date: Sun Mar  1 12:55:13 2009
New Revision: 749021

URL: http://svn.apache.org/viewvc?rev=749021&view=rev
Log:
EV_ERROR doesn't map to APR_POLLERR

It might map to APR_POLLNVAL when used in conjunction with other information
returned by kevent().

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=749021&r1=749020&r2=749021&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/kqueue.c (original)
+++ apr/apr/trunk/poll/unix/kqueue.c Sun Mar  1 12:55:13 2009
@@ -35,9 +35,11 @@
         rv |= APR_POLLOUT;
     if (flags & EV_EOF)
         rv |= APR_POLLHUP;
-    if (flags & EV_ERROR)
-        rv |= APR_POLLERR;
-
+    /* APR_POLLPRI, APR_POLLERR, and APR_POLLNVAL are not handled by this
+     * implementation.
+     * TODO: See if EV_ERROR + certain system errors in the returned data field
+     * should map to APR_POLLNVAL.
+     */
     return rv;
 }
 



Mime
View raw message