mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-18 10:05:51 +00:00
Don't call std::exit on clean exit
This commit is contained in:
committed by
Nik Bougalis
parent
5180e71a0d
commit
685fe5b0fb
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user