summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-07-21 17:49:47 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-07-21 17:49:47 (GMT)
commitdb57e8d186f028cdf472175f48b4aed99b32c972 (patch)
tree76786573f59954b1b99bacbdf2466b0e22572103
parenta30def6c66c49423ce8100debe69c745f0ab2315 (diff)
parent996f606787a7aba177f738157acd672b5821be4c (diff)
downloadcpython-db57e8d186f028cdf472175f48b4aed99b32c972.zip
cpython-db57e8d186f028cdf472175f48b4aed99b32c972.tar.gz
cpython-db57e8d186f028cdf472175f48b4aed99b32c972.tar.bz2
Merge - Issue #12372: POSIX semaphores are broken on AIX: don't use them.
-rw-r--r--Misc/NEWS2
-rwxr-xr-xconfigure8
-rw-r--r--configure.in7
3 files changed, 6 insertions, 11 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index c3e0f52..7bccc05 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -234,6 +234,8 @@ Core and Builtins
Library
-------
+- Issue #12372: POSIX semaphores are broken on AIX: don't use them.
+
- Issue #12551: Provide a get_channel_binding() method on SSL sockets so as
to get channel binding data for the current SSL session (only the
"tls-unique" channel binding is implemented). This allows the implementation
diff --git a/configure b/configure
index 69edd5a..f0d5644 100755
--- a/configure
+++ b/configure
@@ -8792,7 +8792,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
;;
@@ -8800,14 +8800,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
diff --git a/configure.in b/configure.in
index 6335605..2955605 100644
--- a/configure.in
+++ b/configure.in
@@ -2184,18 +2184,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)