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/12 14:09:10 UTC

svn commit: r743721 - /apr/apr/branches/1.4.x/poll/unix/select.c

Author: mturk
Date: Thu Feb 12 13:09:09 2009
New Revision: 743721

URL: http://svn.apache.org/viewvc?rev=743721&view=rev
Log:
Backport r742921 from trunk

Modified:
    apr/apr/branches/1.4.x/poll/unix/select.c

Modified: apr/apr/branches/1.4.x/poll/unix/select.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/poll/unix/select.c?rev=743721&r1=743720&r2=743721&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/poll/unix/select.c (original)
+++ apr/apr/branches/1.4.x/poll/unix/select.c Thu Feb 12 13:09: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() */