Clearer semaphore error messages, removed some legacy code, fixed a compile warning or two.
This commit is contained in:
parent
e090a9368d
commit
43078c5c68
3 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue