Skip to content

Commit 60ceedb

Browse files
authored
bpo-46045: Do not use POSIX semaphores on NetBSD (pythonGH-30047)
This fixes hanging tests test_compileall,, test_multiprocessing_fork and test_concurrent_futures.
1 parent 65940fa commit 60ceedb

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Do not use POSIX semaphores on NetBSD

configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13006,6 +13006,10 @@ $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
1300613006
AIX/*)
1300713007
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
1300813008

13009+
;;
13010+
NetBSD/*)
13011+
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
13012+
1300913013
;;
1301013014
esac
1301113015

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3716,6 +3716,9 @@ if test "$posix_threads" = "yes"; then
37163716
AIX/*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
37173717
[Define if the Posix semaphores do not work on your system])
37183718
;;
3719+
NetBSD/*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
3720+
[Define if the Posix semaphores do not work on your system])
3721+
;;
37193722
esac
37203723

37213724
AC_CACHE_CHECK([if PTHREAD_SCOPE_SYSTEM is supported], [ac_cv_pthread_system_supported],

0 commit comments

Comments
 (0)