about summary refs log tree commit homepage
path: root/iosem.h
diff options
context:
space:
mode:
Diffstat (limited to 'iosem.h')
-rw-r--r--iosem.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/iosem.h b/iosem.h
index 186e01c..eaaf9b4 100644
--- a/iosem.h
+++ b/iosem.h
@@ -24,14 +24,7 @@ retry:
         if (sem->cur > 0) { /* uncontended case is simple */
                 sem->cur--;
         } else {
-                int rc = pthread_cond_wait(&sem->cond, &sem->mtx);
-
-                /*
-                 * POSIX forbids EINTR, but some platforms (old GNU/Linux)
-                 * are buggy
-                 */
-                assert((rc == 0 || rc == EINTR)
-                       && "BUG in pthread_cond_wait usage");
+                CHECK(int, 0, pthread_cond_wait(&sem->cond, &sem->mtx));
                 goto retry;
         }
         CHECK(int, 0, pthread_mutex_unlock(&sem->mtx));