diff options
-rw-r--r-- | nix/libstore/build.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index 19d22ac374..49a6ac9704 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -863,13 +863,9 @@ DerivationGoal::~DerivationGoal() { /* Careful: we should never ever throw an exception from a destructor. */ - try { - killChild(); - deleteTmpDir(false); - closeLogFile(); - } catch (...) { - ignoreException(); - } + try { killChild(); } catch (...) { ignoreException(); } + try { deleteTmpDir(false); } catch (...) { ignoreException(); } + try { closeLogFile(); } catch (...) { ignoreException(); } } |