You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by pq...@apache.org on 2007/02/19 01:42:27 UTC

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

Author: pquerna
Date: Sun Feb 18 16:42:26 2007
New Revision: 509039

URL: http://svn.apache.org/viewvc?view=rev&rev=509039
Log:
Improve returned errors from kevent/kqueue by using apr_get_netos_error() rather than just returning a hard coded error.

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?view=diff&rev=509039&r1=509038&r2=509039
==============================================================================
--- apr/apr/trunk/poll/unix/kqueue.c (original)
+++ apr/apr/trunk/poll/unix/kqueue.c Sun Feb 18 16:42:26 2007
@@ -98,7 +98,7 @@
     (*pollset)->kqueue_fd = kqueue();
 
     if ((*pollset)->kqueue_fd == -1) {
-        return APR_ENOMEM;
+        return apr_get_netos_error();
     }
 
     apr_pool_cleanup_register(p, (void *) (*pollset), backend_cleanup,
@@ -149,7 +149,7 @@
 
         if (kevent(pollset->kqueue_fd, &pollset->kevent, 1, NULL, 0,
                    NULL) == -1) {
-            rv = APR_ENOMEM;
+            rv = apr_get_netos_error();
         }
     }
 
@@ -158,7 +158,7 @@
 
         if (kevent(pollset->kqueue_fd, &pollset->kevent, 1, NULL, 0,
                    NULL) == -1) {
-            rv = APR_ENOMEM;
+            rv = apr_get_netos_error();
         }
     }