guix-commits
[Top][All Lists]
Advanced

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

285/376: Make ~DerivationGoal more reliable


From: Ludovic Courtès
Subject: 285/376: Make ~DerivationGoal more reliable
Date: Wed, 28 Jan 2015 22:05:39 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit bab8d9b52a75276980fed9288573abf4eb7308f8
Author: Eelco Dolstra <address@hidden>
Date:   Wed Nov 12 11:35:53 2014 +0100

    Make ~DerivationGoal more reliable
---
 src/libstore/build.cc |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e8067ac..5aea474 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -851,13 +851,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]