mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
daemon: ~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
e08380fb6c
commit
63a5be07e2
1 changed files with 5 additions and 1 deletions
|
@ -162,7 +162,11 @@ bool PathLocks::lockPaths(const PathSet & _paths,
|
||||||
|
|
||||||
PathLocks::~PathLocks()
|
PathLocks::~PathLocks()
|
||||||
{
|
{
|
||||||
unlock();
|
try {
|
||||||
|
unlock();
|
||||||
|
} catch (...) {
|
||||||
|
ignoreException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue