Revision: 135 http://trac.macosforge.org/projects/libdispatch/changeset/135 Author: robert@fledge.watson.org Date: 2009-11-04 15:10:32 -0800 (Wed, 04 Nov 2009) Log Message: ----------- Properly catch sem_timedwait() returning a failure with an errno != ETIMEDOUT. Modified Paths: -------------- trunk/src/semaphore.c Modified: trunk/src/semaphore.c =================================================================== --- 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; }