aboutsummaryrefslogtreecommitdiff
path: root/devel/glib20/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-09-15 02:52:17 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-09-15 02:52:17 +0000
commitf728afd18b610593f5ab10eccb9c56ac527c88e0 (patch)
tree0d82f7e1775254626fafa3398a98ed5b21e301fa /devel/glib20/files
parent1e676be6804738965ee21d30497ba28bcef78ab8 (diff)
Notes
Diffstat (limited to 'devel/glib20/files')
-rw-r--r--devel/glib20/files/patch-gthread_gthread-posix.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/devel/glib20/files/patch-gthread_gthread-posix.c b/devel/glib20/files/patch-gthread_gthread-posix.c
index e240b97729c3..bdf24590d4cc 100644
--- a/devel/glib20/files/patch-gthread_gthread-posix.c
+++ b/devel/glib20/files/patch-gthread_gthread-posix.c
@@ -1,5 +1,5 @@
---- gthread/gthread-posix.c.orig Mon Nov 4 15:09:47 2002
-+++ gthread/gthread-posix.c Tue Jul 27 09:44:54 2004
+--- gthread/gthread-posix.c.orig Tue Sep 7 17:57:53 2004
++++ gthread/gthread-posix.c Tue Sep 7 17:58:30 2004
@@ -116,6 +116,7 @@
#endif /* POSIX_MIN_PRIORITY && POSIX_MAX_PRIORITY */
@@ -18,6 +18,15 @@
#endif /* _SC_THREAD_STACK_MIN */
#ifdef HAVE_PRIORITIES
# ifdef G_THREADS_IMPL_POSIX
+@@ -176,7 +178,7 @@
+ result = pthread_mutex_trylock ((pthread_mutex_t *) mutex);
+
+ #ifdef G_THREADS_IMPL_POSIX
+- if (result == EBUSY)
++ if ((result == EBUSY) || (result == EDEADLK))
+ return FALSE;
+ #else /* G_THREADS_IMPL_DCE */
+ if (result == 0)
@@ -307,8 +309,12 @@
if (stack_size)
{