[Python-checkins] r74039 - python/trunk/configure.in

alexandre.vassalotti python-checkins at python.org
Fri Jul 17 08:17:33 CEST 2009


Author: alexandre.vassalotti
Date: Fri Jul 17 08:17:33 2009
New Revision: 74039

Log:
Clean the broken poll() test case.


Modified:
   python/trunk/configure.in

Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in	(original)
+++ python/trunk/configure.in	Fri Jul 17 08:17:33 2009
@@ -3556,27 +3556,21 @@
 AC_TRY_RUN([
 #include <poll.h>
 
-int main (void)
-    {
+int main()
+{
     struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
-    
-    close (42);
+    int poll_test;
 
-    int poll_test = poll (&poll_struct, 1, 0);
+    close (42);
 
+    poll_test = poll(&poll_struct, 1, 0);
     if (poll_test < 0)
-        {
-        exit(0);
-        }
+        return 0;
     else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
-        {
-        exit(0);
-        }
+        return 0;
     else
-        {
-        exit(1);
-        }
-    }
+        return 1;
+}
 ],
 ac_cv_broken_poll=yes,
 ac_cv_broken_poll=no,


More information about the Python-checkins mailing list