From: Rich Felker Date: Mon, 3 Oct 2011 04:27:47 +0000 (-0400) Subject: recovering ownerdead robust mutex must reset recursive lock count X-Git-Tag: v0.8.4~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5e977e8b48c6862767ea0a1255233600957c05db;p=oweals%2Fmusl.git recovering ownerdead robust mutex must reset recursive lock count --- 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; }