diff options
Diffstat (limited to 'nptl/sem_timedwait.c')
-rw-r--r-- | nptl/sem_timedwait.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/sem_timedwait.c b/nptl/sem_timedwait.c index 1aab25a..a02e178 100644 --- a/nptl/sem_timedwait.c +++ b/nptl/sem_timedwait.c @@ -30,6 +30,9 @@ sem_timedwait (sem_t *sem, const struct timespec *abstime) return -1; } + /* Check sem_wait.c for a more detailed explanation why it is required. */ + __pthread_testcancel (); + if (__new_sem_wait_fast ((struct new_sem *) sem, 0) == 0) return 0; else |