apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1792961 - /apr/apr/trunk/build/apr_hints.m4
Date Thu, 27 Apr 2017 21:47:11 GMT
Author: rjung
Date: Thu Apr 27 21:47:11 2017
New Revision: 1792961

URL: http://svn.apache.org/viewvc?rev=1792961&view=rev
Log:
pthread_mutex_timedlock is broken on Solaris 10.
It can block without timeout in case of EDEADLK.
On Solaris 8 it does not exist, on Solaris 11
it is fixed. For Solaris 10 no patch is available.

Modified:
    apr/apr/trunk/build/apr_hints.m4

Modified: apr/apr/trunk/build/apr_hints.m4
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/apr_hints.m4?rev=1792961&r1=1792960&r2=1792961&view=diff
==============================================================================
--- apr/apr/trunk/build/apr_hints.m4 (original)
+++ apr/apr/trunk/build/apr_hints.m4 Thu Apr 27 21:47:11 2017
@@ -119,6 +119,7 @@ dnl	       # Not a problem in 10.20.  Ot
 	;;
     *-linux*)
 	APR_ADDTO(CPPFLAGS, [-DLINUX -D_REENTRANT -D_GNU_SOURCE])
+        APR_SETIFNULL(ac_cv_func_pthread_mutex_timedlock, [no])
 	;;
     *-lynx-lynxos)
 	APR_ADDTO(CPPFLAGS, [-D__NO_INCLUDE_WARN__ -DLYNXOS])
@@ -237,6 +238,11 @@ dnl	       # Not a problem in 10.20.  Ot
     *-solaris2*)
     	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
 	APR_ADDTO(CPPFLAGS, [-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT])
+        if test $PLATOSVERS -eq 10; then
+            # pthread_mutex_timedlock is broken on Solaris 10.
+            # It can block without timeout in case of EDEADLK.
+            APR_SETIFNULL(ac_cv_func_pthread_mutex_timedlock, [no])
+        fi
         if test $PLATOSVERS -ge 10; then
             APR_SETIFNULL(apr_lock_method, [USE_PROC_PTHREAD_SERIALIZE])
         else



Mime
View raw message