You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2009/03/01 13:55:14 UTC

svn commit: r749021 - /apr/apr/trunk/poll/unix/kqueue.c

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;
 }