Issue #7272: Add configure test to detect whether sem_open works

properly, and use this to skip test_multiprocessing on platforms
where sem_open raises a signal.  This should fix some FreeBSD buildbot
failures for test_multiprocessing.
This commit is contained in:
Mark Dickinson 2009-11-20 19:30:22 +00:00
parent ab44226198
commit c4920e86ef
6 changed files with 127 additions and 5 deletions

View file

@ -1315,7 +1315,8 @@ class PyBuildExt(build_ext):
multiprocessing_srcs = [ '_multiprocessing/multiprocessing.c',
'_multiprocessing/socket_connection.c'
]
if sysconfig.get_config_var('HAVE_SEM_OPEN'):
if (sysconfig.get_config_var('HAVE_SEM_OPEN') and not
sysconfig.get_config_var('HAVE_BROKEN_POSIX_SEMAPHORES')):
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
if sysconfig.get_config_var('WITH_THREAD'):