Fixed tryWait semaphore call

This commit is contained in:
Thulinma 2017-11-29 15:03:41 +01:00
parent 0d9fe0dbfe
commit 3f50ba6651

View file

@ -232,7 +232,9 @@ namespace IPC {
result = 0;
}
#else
result = sem_trywait(mySem);
do {
result = sem_trywait(mySem);
} while (result == -1 && errno == EINTR);
#endif
return (result == 0);
}