[prev in list] [next in list] [prev in thread] [next in thread]
List: apr-cvs
Subject: svn commit: r509039 - /apr/apr/trunk/poll/unix/kqueue.c
From: pquerna () apache ! org
Date: 2007-02-19 0:42:27
Message-ID: 20070219004227.97A501A981A () eris ! apache ! org
[Download RAW message or body]
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();
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic