diff --git a/lib/logvisor.cpp b/lib/logvisor.cpp index 66b0c5b..50d3be8 100644 --- a/lib/logvisor.cpp +++ b/lib/logvisor.cpp @@ -168,8 +168,12 @@ void logvisorAbort() // If you caught one of the above signals, it is likely you just // want to quit your program right now. +#ifndef NDEBUG signal(SIGABRT, SIG_DFL); abort(); +#else + exit(1); +#endif } #else