Fixed tryWait semaphore call

This commit is contained in:
Thulinma 2017-11-29 15:03:41 +01:00
parent db511a6e32
commit f4e3087f1a

View file

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