mirror of
https://github.com/AxioDL/logvisor.git
synced 2025-12-08 13:15:09 +00:00
Compare commits
2 Commits
9420e3007e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 208a8c1f84 | |||
|
6926b6a7c9
|
@@ -180,6 +180,10 @@ void KillProcessTree() {
|
||||
nvExit();
|
||||
exit(1);
|
||||
}
|
||||
#elif defined(EMSCRIPTEN)
|
||||
[[noreturn]] void logvisorAbort() {
|
||||
abort();
|
||||
}
|
||||
#else
|
||||
|
||||
void KillProcessTree() {}
|
||||
@@ -760,6 +764,7 @@ struct FileLogger : public ILogger {
|
||||
}
|
||||
virtual void closeFile() {
|
||||
if (fp) {
|
||||
std::fflush(fp);
|
||||
std::fclose(fp);
|
||||
fp = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user