Make ~DerivationGoal more reliable
This commit is contained in:
parent
d436e44ae3
commit
bab8d9b52a
1 changed files with 3 additions and 7 deletions
|
@ -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(); }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue