[Python-checkins] cpython (3.2): Issue #12372: POSIX semaphores are broken on AIX: don't use them.

charles-francois.natali python-checkins at python.org
Thu Jul 21 19:45:36 CEST 2011


http://hg.python.org/cpython/rev/f0475f78d45c
changeset:   71448:f0475f78d45c
branch:      3.2
parent:      71443:3bc80b6f7cd8
user:        Charles-François Natali <neologix at free.fr>
date:        Thu Jul 21 19:45:31 2011 +0200
summary:
  Issue #12372: POSIX semaphores are broken on AIX: don't use them.

files:
  Misc/NEWS    |  2 ++
  configure    |  8 ++------
  configure.in |  7 ++-----
  3 files changed, 6 insertions(+), 11 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@
 Library
 -------
 
+- Issue #12372: POSIX semaphores are broken on AIX: don't use them.
+
 - Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2
   directory, so that "import DLFCN" and other similar imports work on
   Linux 3.0.
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -8868,7 +8868,7 @@
 
       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
       case  $ac_sys_system/$ac_sys_release in
-  SunOS/5.6)
+      SunOS/5.6)
 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
 
 		       ;;
@@ -8876,14 +8876,10 @@
 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
 
 		       ;;
-      AIX/5)
+      AIX/*)
 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
 
 		       ;;
-      AIX/6)
-$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
-
-                      ;;
       esac
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -2239,18 +2239,15 @@
 
       # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
       case  $ac_sys_system/$ac_sys_release in
-  SunOS/5.6) AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1,
+      SunOS/5.6) AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1,
                        [Defined for Solaris 2.6 bug in pthread header.])
 		       ;;
       SunOS/5.8) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
 		       [Define if the Posix semaphores do not work on your system])
 		       ;;
-      AIX/5) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
+      AIX/*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
 		       [Define if the Posix semaphores do not work on your system])
 		       ;;
-      AIX/6) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
-                      Define if the Posix semaphores do not work on your system)
-                      ;;
       esac
 
       AC_MSG_CHECKING(if PTHREAD_SCOPE_SYSTEM is supported)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list