mirror of https://github.com/AxioDL/logvisor.git
use exit(1) rather than abort() for release builds
This commit is contained in:
parent
f28fa0dbb2
commit
b89d18c471
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue