Properly catch sem_timedwait() returning a failure with an errno != ETIMEDOUT.
--- trunk/src/semaphore.c 2009-11-04 22:55:16 UTC (rev 134)
+++ trunk/src/semaphore.c 2009-11-04 23:10:32 UTC (rev 135)
@@ -208,7 +208,7 @@
&_timeout));
} while (ret == -1 && errno == EINTR);
- if (ret == -1 && errno != ETIMEDOUT) {
+ if (!(ret == -1 && errno == ETIMEDOUT)) {
DISPATCH_SEMAPHORE_VERIFY_RET(ret);
break;
}