Page MenuHomeFreeBSD

D60426.id188986.diff
No OneTemporary

D60426.id188986.diff

diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -865,7 +865,7 @@
case PTHREAD_MUTEX_RECURSIVE:
/* Increment the lock count: */
- if (m->m_count + 1 > 0) {
+ if (m->m_count < INT_MAX) {
m->m_count++;
ret = 0;
} else
@@ -934,7 +934,7 @@
case PTHREAD_MUTEX_RECURSIVE:
/* Increment the lock count: */
- if (m->m_count + 1 > 0) {
+ if (m->m_count < INT_MAX) {
m->m_count++;
ret = 0;
} else

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 9, 8:31 AM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40392533
Default Alt Text
D60426.id188986.diff (528 B)

Event Timeline