Don't call std::exit on clean exit

This commit is contained in:
Vinnie Falco
2014-11-22 09:55:17 -08:00
committed by Nik Bougalis
parent 5180e71a0d
commit 685fe5b0fb

View File

@@ -894,11 +894,14 @@ public:
m_journal.info << "Received shutdown request";
stop (m_journal);
m_journal.info << "Done.";
exitWithCode(0);
StopSustain();
}
void exitWithCode(int code){
void exitWithCode(int code)
{
StopSustain();
// VFALCO This breaks invariants: automatic objects
// will not have destructors called.
std::exit(code);
}