From b89d18c47181371c7871f49751f5d657f02f1fd6 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 13 Jan 2018 20:06:42 -1000 Subject: [PATCH] use exit(1) rather than abort() for release builds --- lib/logvisor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/logvisor.cpp b/lib/logvisor.cpp index 73e4fe2..66b0c5b 100644 --- a/lib/logvisor.cpp +++ b/lib/logvisor.cpp @@ -243,8 +243,13 @@ void logvisorAbort() fflush(stderr); fflush(stdout); KillProcessTree(); + +#ifndef NDEBUG signal(SIGABRT, SIG_DFL); abort(); +#else + exit(1); +#endif } #endif