mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02: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:
committed by
Ludovic Courtès
parent
e08380fb6c
commit
63a5be07e2
@@ -162,7 +162,11 @@ bool PathLocks::lockPaths(const PathSet & _paths,
|
||||
|
||||
PathLocks::~PathLocks()
|
||||
{
|
||||
unlock();
|
||||
try {
|
||||
unlock();
|
||||
} catch (...) {
|
||||
ignoreException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user