mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
For some reason test suite hangs when testing sysv semaphores. It is unclear if semtimedop(2) in musl, or apr or the testsuite in apr is broken. We work arund this by avoid use semtimedop(2) for now.
16 lines
616 B
Diff
16 lines
616 B
Diff
the testsuite hangs on s390x when testing locking mechanism sysvsem. Work
|
|
around by avoid use semtimedop for s390x.
|
|
|
|
diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c
|
|
index 8e2187f..cad6c4a 100644
|
|
--- a/locks/unix/proc_mutex.c
|
|
+++ b/locks/unix/proc_mutex.c
|
|
@@ -449,7 +449,7 @@ static const apr_proc_mutex_unix_lock_methods_t mutex_sysv_methods =
|
|
proc_mutex_sysv_create,
|
|
proc_mutex_sysv_acquire,
|
|
proc_mutex_sysv_tryacquire,
|
|
-#if defined(HAVE_SEMTIMEDOP)
|
|
+#if defined(HAVE_SEMTIMEDOP) && !defined(__s390x__)
|
|
proc_mutex_sysv_timedacquire,
|
|
#else
|
|
proc_mutex_spinsleep_timedacquire,
|