Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db57e8d

Browse files
author
Charles-François Natali
committed
Merge - Issue #12372: POSIX semaphores are broken on AIX: don't use them.
2 parents a30def6 + 996f606 commit db57e8d

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ Core and Builtins
234234
Library
235235
-------
236236

237+
- Issue #12372: POSIX semaphores are broken on AIX: don't use them.
238+
237239
- Issue #12551: Provide a get_channel_binding() method on SSL sockets so as
238240
to get channel binding data for the current SSL session (only the
239241
"tls-unique" channel binding is implemented). This allows the implementation

configure

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8792,22 +8792,18 @@ $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
87928792

87938793
# Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
87948794
case $ac_sys_system/$ac_sys_release in
8795-
SunOS/5.6)
8795+
SunOS/5.6)
87968796
$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
87978797

87988798
;;
87998799
SunOS/5.8)
88008800
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
88018801

88028802
;;
8803-
AIX/5)
8803+
AIX/*)
88048804
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
88058805

88068806
;;
8807-
AIX/6)
8808-
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8809-
8810-
;;
88118807
esac
88128808

88138809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5

configure.in

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,18 +2184,15 @@ if test "$posix_threads" = "yes"; then
21842184

21852185
# Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
21862186
case $ac_sys_system/$ac_sys_release in
2187-
SunOS/5.6) AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1,
2187+
SunOS/5.6) AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1,
21882188
[Defined for Solaris 2.6 bug in pthread header.])
21892189
;;
21902190
SunOS/5.8) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
21912191
[Define if the Posix semaphores do not work on your system])
21922192
;;
2193-
AIX/5) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
2193+
AIX/*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
21942194
[Define if the Posix semaphores do not work on your system])
21952195
;;
2196-
AIX/6) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
2197-
Define if the Posix semaphores do not work on your system)
2198-
;;
21992196
esac
22002197

22012198
AC_MSG_CHECKING(if PTHREAD_SCOPE_SYSTEM is supported)

0 commit comments

Comments
 (0)