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
|
/* Careful: we should never ever throw an exception from a
|
||||||
destructor. */
|
destructor. */
|
||||||
try {
|
try { killChild(); } catch (...) { ignoreException(); }
|
||||||
killChild();
|
try { deleteTmpDir(false); } catch (...) { ignoreException(); }
|
||||||
deleteTmpDir(false);
|
try { closeLogFile(); } catch (...) { ignoreException(); }
|
||||||
closeLogFile();
|
|
||||||
} catch (...) {
|
|
||||||
ignoreException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue