Clearer semaphore error messages, removed some legacy code, fixed a compile warning or two.

This commit is contained in:
Thulinma 2014-06-20 10:36:26 +02:00
parent e090a9368d
commit 43078c5c68
3 changed files with 3 additions and 6 deletions

View file

@ -812,7 +812,7 @@ namespace IPC {
mySemaphore.open(std::string("/" + baseName).c_str(), O_RDWR);
#endif
if (!mySemaphore) {
DEBUG_MSG(DLVL_FAIL, "Creating semaphore failed: %s", strerror(errno));
DEBUG_MSG(DLVL_FAIL, "Creating copy of semaphore %s failed: %s", baseName.c_str(), strerror(errno));
return;
}
semGuard tmpGuard(mySemaphore);
@ -832,7 +832,7 @@ namespace IPC {
mySemaphore.open(std::string("/" + baseName).c_str(), O_RDWR);
#endif
if (!mySemaphore) {
DEBUG_MSG(DLVL_FAIL, "Creating semaphore failed: %s", strerror(errno));
DEBUG_MSG(DLVL_FAIL, "Creating semaphore %s failed: %s", baseName.c_str(), strerror(errno));
return;
}
semGuard tmpGuard(mySemaphore);