mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Don't break the unit tests by slowing shutdown.
This commit is contained in:
@@ -83,10 +83,13 @@ void sigIntHandler(int)
|
|||||||
void Application::run()
|
void Application::run()
|
||||||
{
|
{
|
||||||
#ifdef SIGINT
|
#ifdef SIGINT
|
||||||
|
if (!config.RUN_STANDALONE)
|
||||||
|
{
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
memset(&sa, 0, sizeof(sa));
|
memset(&sa, 0, sizeof(sa));
|
||||||
sa.sa_handler = sigIntHandler;
|
sa.sa_handler = sigIntHandler;
|
||||||
sigaction(SIGINT, &sa, NULL);
|
sigaction(SIGINT, &sa, NULL);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
assert(mTxnDB == NULL);
|
assert(mTxnDB == NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user