Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
dfc33fd8
Kaydet (Commit)
dfc33fd8
authored
Ock 21, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't use Posix semaphores on Solaris 8. Fixes #662787.
üst
2da75faa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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