Added comment for crashHandler

This commit is contained in:
sfc-gh-tclinkenbeard 2021-06-29 11:00:05 -07:00
parent 8855c7ee8d
commit a73570e538
1 changed files with 2 additions and 0 deletions

View File

@ -3410,6 +3410,8 @@ void platformInit() {
#endif
}
// The crashHandler function is registered to handle signals before the process terminates.
// Basic information about the crash is printed/traced, and stdout and trace events are flushed.
void crashHandler(int sig) {
#ifdef __linux__
// Pretty much all of this handler is risking undefined behavior and hangs,