[libdispatch-changes] [135] trunk/src/semaphore.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 4 15:10:33 PST 2009
Revision: 135
http://trac.macosforge.org/projects/libdispatch/changeset/135
Author: robert at 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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091104/f08310e8/attachment.html>
More information about the libdispatch-changes
mailing list