mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
Add RIPPLE_APPLICATION_CLEAN_EXIT option to BeastConfig.h
This commit is contained in:
@@ -164,4 +164,10 @@
|
||||
#define RIPPLE_USE_NEW_VALIDATORS 0
|
||||
#endif
|
||||
|
||||
// Turning this on makes the Application object get destroyed,
|
||||
// which is part of an attempt to have a "clean exit."
|
||||
#ifndef RIPPLE_APPLICATION_CLEAN_EXIT
|
||||
#define RIPPLE_APPLICATION_CLEAN_EXIT 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
// VFALCO NOTE Change this to control whether or not the Application
|
||||
// object is destroyed on exit
|
||||
//
|
||||
#if 1
|
||||
#if RIPPLE_APPLICATION_CLEAN_EXIT
|
||||
// Application object will be deleted on exit. If the code doesn't exit
|
||||
// cleanly this could cause hangs or crashes on exit.
|
||||
//
|
||||
@@ -149,9 +149,8 @@ public:
|
||||
#else
|
||||
// This will make it so that the Application object is not deleted on exit.
|
||||
//
|
||||
: SharedSingleton <Application> (SingletonLifetime::neverDestroyed)
|
||||
: SharedSingleton <ApplicationImp> (SingletonLifetime::neverDestroyed)
|
||||
#endif
|
||||
, mMasterLock (this, "MasterLock", __FILE__, __LINE__)
|
||||
, m_mainService ("io",
|
||||
(getConfig ().NODE_SIZE >= 2) ? 2 : 1,
|
||||
(getConfig ().NODE_SIZE >= 2) ? 1 : 0)
|
||||
|
||||
Reference in New Issue
Block a user