civodul pushed a commit to branch nix
in repository guix.
commit e0825bd36b43f3c1d408745a9c61f92fdaf7dace
Author: Eelco Dolstra <[email protected]>
Date: Wed Nov 12 11:35:53 2014 +0100
Make ~DerivationGoal more reliable
---
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 19d22ac..49a6ac9 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(); }
}