~PathLocks(): Handle exceptions
Otherwise, since the call to write a "d" character to the lock file can fail with ENOSPC, we can get an unhandled exception resulting in a call to terminate().
This commit is contained in:
parent
b8258a4475
commit
77ad443bd1
1 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,11 @@ bool PathLocks::lockPaths(const PathSet & _paths,
|
|||
|
||||
PathLocks::~PathLocks()
|
||||
{
|
||||
try {
|
||||
unlock();
|
||||
} catch (...) {
|
||||
ignoreException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue