From 4f58ab14b0de51e4d4b2ba7eaaab2770e80d2c2d Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 29 Nov 2012 18:40:01 -0800 Subject: [PATCH] Don't break the unit tests by slowing shutdown. --- src/cpp/ripple/Application.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/Application.cpp b/src/cpp/ripple/Application.cpp index 16fcada6ad..75f4c8c0aa 100644 --- a/src/cpp/ripple/Application.cpp +++ b/src/cpp/ripple/Application.cpp @@ -83,10 +83,13 @@ void sigIntHandler(int) void Application::run() { #ifdef SIGINT - struct sigaction sa; - memset(&sa, 0, sizeof(sa)); - sa.sa_handler = sigIntHandler; - sigaction(SIGINT, &sa, NULL); + if (!config.RUN_STANDALONE) + { + struct sigaction sa; + memset(&sa, 0, sizeof(sa)); + sa.sa_handler = sigIntHandler; + sigaction(SIGINT, &sa, NULL); + } #endif assert(mTxnDB == NULL);