| 139 | } |
| 140 | |
| 141 | void dfhack_crashlog_thread() { |
| 142 | // Wait for activation signal |
| 143 | flag_wait(crashlog_ready); |
| 144 | if (shutdown.load()) // Shutting down gracefully, end thread. |
| 145 | return; |
| 146 | |
| 147 | dfhack_save_crashlog(); |
| 148 | signal_crashlog_complete(); |
| 149 | std::quick_exit(1); |
| 150 | } |
| 151 | |
| 152 | std::terminate_handler term_handler = nullptr; |
| 153 |
nothing calls this directly
no test coverage detected