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