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