apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r746580 - in /apr/apr/trunk/poll/unix: epoll.c port.c
Date Sat, 21 Feb 2009 20:04:04 GMT
Author: trawick
Date: Sat Feb 21 20:04:03 2009
New Revision: 746580

URL: http://svn.apache.org/viewvc?rev=746580&view=rev
Log:
apr_pollset_create_ex() already made room for the wakeup descriptor,
so the implementation-specific pollset-create can ignore that

Modified:
    apr/apr/trunk/poll/unix/epoll.c
    apr/apr/trunk/poll/unix/port.c

Modified: apr/apr/trunk/poll/unix/epoll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/epoll.c?rev=746580&r1=746579&r2=746580&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/epoll.c (original)
+++ apr/apr/trunk/poll/unix/epoll.c Sat Feb 21 20:04:03 2009
@@ -95,10 +95,6 @@
     apr_status_t rv;
     int fd;
 
-    if (flags & APR_POLLSET_WAKEABLE) {
-        /* Add room for wakeup descriptor */
-        size++;
-    }
     fd = epoll_create(size);
     if (fd < 0) {
         pollset->p = NULL;

Modified: apr/apr/trunk/poll/unix/port.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/port.c?rev=746580&r1=746579&r2=746580&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/port.c (original)
+++ apr/apr/trunk/poll/unix/port.c Sat Feb 21 20:04:03 2009
@@ -114,10 +114,6 @@
         return APR_ENOTIMPL;
     }
 #endif
-    if (flags & APR_POLLSET_WAKEABLE) {
-        /* Add room for wakeup descriptor */
-        size++;
-    }
     pollset->p->waiting = 0;
 
     pollset->p->port_set = apr_palloc(p, size * sizeof(port_event_t));



Mime
View raw message