apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r742921 - /apr/apr/trunk/poll/unix/select.c
Date Tue, 10 Feb 2009 09:56:15 GMT
Author: mturk
Date: Tue Feb 10 09:56:09 2009
New Revision: 742921

URL: http://svn.apache.org/viewvc?rev=742921&view=rev
Log:
Fix win32 APR_POLLSET_WAKEABLE implementation.

Modified:
    apr/apr/trunk/poll/unix/select.c

Modified: apr/apr/trunk/poll/unix/select.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/select.c?rev=742921&r1=742920&r2=742921&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/select.c (original)
+++ apr/apr/trunk/poll/unix/select.c Tue Feb 10 09:56:09 2009
@@ -358,7 +358,12 @@
     }
     else {
 #if !APR_FILES_AS_SOCKETS
-        return APR_EBADF;
+        if ((pollset->flags & APR_POLLSET_WAKEABLE) &&
+            descriptor->desc.f == pollset->wakeup_pipe[0]) {
+            fd = (apr_os_sock_t)descriptor->desc.f->filedes;
+        }
+        else
+            return APR_EBADF;
 #else
 #ifdef NETWARE
         /* NetWare can't handle mixed descriptor types in select() */



Mime
View raw message