apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r744521 - /apr/apr/trunk/poll/unix/poll.c
Date Sat, 14 Feb 2009 16:51:54 GMT
Author: mturk
Date: Sat Feb 14 16:51:54 2009
New Revision: 744521

URL: http://svn.apache.org/viewvc?rev=744521&view=rev
Log:
Fix compile time warning. Check if we have only wakeup socket in which case we return the
APR_EINTR

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

Modified: apr/apr/trunk/poll/unix/poll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/poll.c?rev=744521&r1=744520&r2=744521&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/poll.c (original)
+++ apr/apr/trunk/poll/unix/poll.c Sat Feb 14 16:51:54 2009
@@ -266,7 +266,7 @@
                 }
             }
         }
-        if ((*num) = j)
+        if (((*num) = j) > 0)
             rv = APR_SUCCESS;
     }
     if (descriptors && (*num))



Mime
View raw message