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