diff options
Diffstat (limited to 'libjava/posix-threads.cc')
-rw-r--r-- | libjava/posix-threads.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/posix-threads.cc b/libjava/posix-threads.cc index 825b020..791c43b 100644 --- a/libjava/posix-threads.cc +++ b/libjava/posix-threads.cc @@ -91,6 +91,9 @@ _Jv_CondWait (_Jv_ConditionVariable_t *cv, _Jv_Mutex_t *mu, ts.tv_nsec = ((m % 1000) * 1000000) + nanos; r = pthread_cond_timedwait (cv, pmu, &ts); + /* A timeout is a normal result. */ + if (r && errno == ETIME) + r = 0; } return r; } |