apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r743721 - /apr/apr/branches/1.4.x/poll/unix/select.c
Date Thu, 12 Feb 2009 13:09:10 GMT
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() */



Mime
View raw message