Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dfc33fd8
Commit
dfc33fd8
authored
Jan 21, 2003
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use Posix semaphores on Solaris 8. Fixes #662787.
parent
2da75faa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
Python/thread_pthread.h
Python/thread_pthread.h
+1
-1
configure
configure
+10
-1
configure.in
configure.in
+6
-0
pyconfig.h.in
pyconfig.h.in
+3
-0
No files found.
Python/thread_pthread.h
View file @
dfc33fd8
...
...
@@ -104,7 +104,7 @@
/* Whether or not to use semaphores directly rather than emulating them with
* mutexes and condition variables:
*/
#if
def _POSIX_SEMAPHORES
#if
defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES)
# define USE_SEMAPHORES
#else
# undef USE_SEMAPHORES
...
...
configure
View file @
dfc33fd8
#! /bin/sh
# From configure.in Revision: 1.38
5
.
# From configure.in Revision: 1.38
6
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53 for python 2.3.
#
...
...
@@ -11132,6 +11132,15 @@ _ACEOF
fi
# Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
case
$ac_sys_system
/
$ac_sys_release
in
SunOS/5.8
)
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
_ACEOF
;;
esac
echo
"
$as_me
:
$LINENO
: checking if PTHREAD_SCOPE_SYSTEM is supported"
>
&5
echo
$ECHO_N
"checking if PTHREAD_SCOPE_SYSTEM is supported...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_pthread_system_supported
+set
}
"
=
set
;
then
...
...
configure.in
View file @
dfc33fd8
...
...
@@ -1447,6 +1447,12 @@ pthread_create (NULL, NULL, start_routine, NULL)], [
and your system does not define that.])
fi
# Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
case $ac_sys_system/$ac_sys_release in
SunOS/5.8) 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)
AC_CACHE_VAL(ac_cv_pthread_system_supported,
[AC_TRY_RUN([#include <pthread.h>
...
...
pyconfig.h.in
View file @
dfc33fd8
...
...
@@ -44,6 +44,9 @@
/* Define if nice() returns success/failure instead of the new priority. */
#undef HAVE_BROKEN_NICE
/* Define if the Posix semaphores do not work on your system */
#undef HAVE_BROKEN_POSIX_SEMAPHORES
/* Define to 1 if you have the `chown' function. */
#undef HAVE_CHOWN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment