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/14 17:51:54 UTC

svn commit: r744521 - /apr/apr/trunk/poll/unix/poll.c

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))