mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-22 16:44:32 +01:00
Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could not
be acquired. PR: 168317 MFC after: 3 days
This commit is contained in:
parent
c69baa7e91
commit
e3b090f037
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236135
@ -538,6 +538,7 @@ mutex_self_trylock(struct pthread_mutex *m)
|
||||
switch (PMUTEX_TYPE(m->m_flags)) {
|
||||
case PTHREAD_MUTEX_ERRORCHECK:
|
||||
case PTHREAD_MUTEX_NORMAL:
|
||||
case PTHREAD_MUTEX_ADAPTIVE_NP:
|
||||
ret = EBUSY;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user