* mono-semaphore.c: fixes bug #622398 for real in OSX.
This was preventing the WSQ from working.
svn path=/trunk/mono/; revision=160469
+2010-07-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * mono-semaphore.c: fixes bug #622398 for real in OSX.
+ This was preventing the WSQ from working.
+
2010-07-02 Michael Hutchinson <mhutchinson@novell.com>
* mono-compiler.h: Add MONO_THREAD_VAR_OFFSET macro for s390x.
}
#else
copy = ts;
- while ((res = WAIT_BLOCK (sem, &ts) == -1) && errno == EINTR) {
+ while ((res = WAIT_BLOCK (sem, &ts)) == -1 && errno == EINTR) {
struct timeval current;
if (alertable)
return -1;
}
}
#endif
- return res;
+ return (res != -1);
}
int