mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Call std::exit for unhandled exceptions
This commit is contained in:
@@ -17,6 +17,22 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
RippleMain::RippleMain()
|
||||
{
|
||||
ProtectedCall::setHandler (*this);
|
||||
}
|
||||
|
||||
RippleMain::~RippleMain()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void RippleMain::onException (ProtectedCall::Exception const& e) const
|
||||
{
|
||||
std::_Exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace po = boost::program_options;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user