Skip to contentSkip to conversation

problems with linuxthreads under your latest glibc 15C rpms

PATCH Kevin B. Hendricks 1 participant 1 message Jul 28, 2000

lore
Share & tools
lore
#0 lore raw

Hi Franz,

Whoops I forgot to attach the patch to fix this (against your latest glibc-2.1.3-15c src rpm).

mutex.c Thu Jul 27 20:59:06 2000 renamed from mutex.c.prev Thu Jul 27 20:57:28 2000 +3 -1
@@ -50,7 +50,9 @@
   switch(mutex->__m_kind) {
   case PTHREAD_MUTEX_FAST_NP:
     retcode = __pthread_trylock(&mutex->__m_lock);
-    mutex->__m_owner = thread_self();
+    if (retcode == 0) {
+      mutex->__m_owner = thread_self();
+    }
     return retcode;
   case PTHREAD_MUTEX_RECURSIVE_NP:
     self = thread_self();

I will let you know if I find any more funny things.

Thanks,

Kevin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/