Fixed potential deadlock in buffer when a past crash has happened
This commit is contained in:
parent
0232417512
commit
4dc3d22d12
1 changed files with 4 additions and 0 deletions
|
@ -766,6 +766,10 @@ namespace IPC {
|
||||||
DEBUG_MSG(DLVL_FAIL, "Creating semaphore failed: %s", strerror(errno));
|
DEBUG_MSG(DLVL_FAIL, "Creating semaphore failed: %s", strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!mySemaphore.tryWaitOneSecond()){
|
||||||
|
WARN_MSG("Force unlocking sharedServer semaphore to prevent deadlock");
|
||||||
|
}
|
||||||
|
mySemaphore.post();
|
||||||
semGuard tmpGuard(&mySemaphore);
|
semGuard tmpGuard(&mySemaphore);
|
||||||
newPage();
|
newPage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue