]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12372: POSIX semaphores are broken on AIX: don't use them.
authorCharles-François Natali <neologix@free.fr>
Thu, 21 Jul 2011 17:45:31 +0000 (19:45 +0200)
committerCharles-François Natali <neologix@free.fr>
Thu, 21 Jul 2011 17:45:31 +0000 (19:45 +0200)
Misc/NEWS
configure
configure.in

index df257f5a3f510ad94e4254503b809632151d8243..c1162ed640fdab21814bf5b564de4a3ed7c074d7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@ Core and Builtins
 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.
index 36723f614ad3a7360b6a4a47e994d4253ccb0eee..23664e834614ac3adfdb199ae1d8a3fb845198e4 100755 (executable)
--- a/configure
+++ b/configure
@@ -8868,7 +8868,7 @@ $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
 
       # 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_PTHREAD_DESTRUCTOR 1" >>confdefs.h
 $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
index 8e89c8fc3688d1a3bd525d760e0731984c03d28b..de743ca47ba5a9fcbf6491bb97d9a7beacf724e9 100644 (file)
@@ -2239,18 +2239,15 @@ if test "$posix_threads" = "yes"; then
 
       # 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)