Skip to content

Commit

Permalink
compat: return ETIMEDOUT when timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
jktjkt authored and michalvasko committed Jun 16, 2023
1 parent e7a0ff6 commit 36780ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compat/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abstime)

if (nsec_diff <= 0) {
/* timeout */
rc = ETIMEDOUT;
break;
} else if (nsec_diff < 5000000) {
/* sleep until timeout */
Expand Down

0 comments on commit 36780ac

Please sign in to comment.