Added semaphore fail message when a semaphore cannot be opened.

This commit is contained in:
Thulinma 2014-06-20 11:27:27 +02:00
parent 43078c5c68
commit a077f55a43

View file

@ -97,6 +97,9 @@ namespace IPC {
mySem = sem_open(name, oflag);
}
#endif
if (!(*this)){
FAIL_MSG("Failed to open semaphore %s: %s", name, strerror(errno));
}
myName = (char *)name;
}