You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2009/02/10 10:56:15 UTC

svn commit: r742921 - /apr/apr/trunk/poll/unix/select.c

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() */