From 851bd057ecfa2997252429f86362b0a710a1af8d Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 26 Jan 2018 10:35:13 +0000 Subject: call _exit instead of abort in release mode Avoids cores being created, as they're nowadays often piped to some call home system --- external/easylogging++/easylogging++.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'external/easylogging++/easylogging++.cc') diff --git a/external/easylogging++/easylogging++.cc b/external/easylogging++/easylogging++.cc index 57742b2e5..212a1822d 100644 --- a/external/easylogging++/easylogging++.cc +++ b/external/easylogging++/easylogging++.cc @@ -17,6 +17,8 @@ #define EASYLOGGING_CC #include "easylogging++.h" +#include + #if defined(AUTO_INITIALIZE_EASYLOGGINGPP) INITIALIZE_EASYLOGGINGPP #endif @@ -35,8 +37,12 @@ static void abort(int status, const std::string& reason) { #if defined(ELPP_COMPILER_MSVC) && defined(_M_IX86) && defined(_DEBUG) // Ignore msvc critical error dialog - break instead (on debug mode) _asm int 3 +#else +#ifdef NDEBUG + ::_exit(1); #else ::abort(); +#endif #endif // defined(ELPP_COMPILER_MSVC) && defined(_M_IX86) && defined(_DEBUG) } -- cgit v1.2.3