Make ~DerivationGoal more reliable

This commit is contained in:
Eelco Dolstra 2014-11-12 11:35:53 +01:00
parent d436e44ae3
commit bab8d9b52a

View file

@ -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(); }
}