Skip to content

Commit 2a2b6de

Browse files
jktjktmichalvasko
authored andcommitted
compat: return ETIMEDOUT when timing out
1 parent 922885a commit 2a2b6de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compat/compat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abstime)
4848

4949
if (nsec_diff <= 0) {
5050
/* timeout */
51+
rc = ETIMEDOUT;
5152
break;
5253
} else if (nsec_diff < 5000000) {
5354
/* sleep until timeout */

0 commit comments

Comments
 (0)