From 5e977e8b48c6862767ea0a1255233600957c05db Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 3 Oct 2011 00:27:47 -0400 Subject: [PATCH] recovering ownerdead robust mutex must reset recursive lock count --- src/thread/pthread_mutex_trylock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/thread/pthread_mutex_trylock.c b/src/thread/pthread_mutex_trylock.c index fb277970..db784a73 100644 --- a/src/thread/pthread_mutex_trylock.c +++ b/src/thread/pthread_mutex_trylock.c @@ -43,6 +43,7 @@ int pthread_mutex_trylock(pthread_mutex_t *m) self->robust_list.head = &m->_m_next; self->robust_list.pending = 0; if (own) { + m->_m_count = 0; m->_m_type += 8; return EOWNERDEAD; }