guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

110/118: Make ~DerivationGoal more reliable


From: Ludovic Courtès
Subject: 110/118: Make ~DerivationGoal more reliable
Date: Tue, 19 May 2015 14:46:04 +0000

civodul pushed a commit to branch nix
in repository guix.

commit e0825bd36b43f3c1d408745a9c61f92fdaf7dace
Author: Eelco Dolstra <address@hidden>
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(); }
 }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]