Make ~DerivationGoal more reliable
This commit is contained in:
parent
86b9e6d457
commit
e0825bd36b
|
@ -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(); }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue