apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r509039 - /apr/apr/trunk/poll/unix/kqueue.c
Date Mon, 19 Feb 2007 00:42:27 GMT
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();
         }
     }
 



Mime
View raw message