use exit(1) rather than abort() for release builds

This commit is contained in:
Jack Andersen 2018-01-13 20:06:42 -10:00
parent f28fa0dbb2
commit b89d18c471
1 changed files with 5 additions and 0 deletions

View File

@ -243,8 +243,13 @@ void logvisorAbort()
fflush(stderr); fflush(stderr);
fflush(stdout); fflush(stdout);
KillProcessTree(); KillProcessTree();
#ifndef NDEBUG
signal(SIGABRT, SIG_DFL); signal(SIGABRT, SIG_DFL);
abort(); abort();
#else
exit(1);
#endif
} }
#endif #endif