| 1839 | } |
| 1840 | |
| 1841 | void printCrashReport(void) { |
| 1842 | /* Log INFO and CLIENT LIST */ |
| 1843 | logServerInfo(); |
| 1844 | |
| 1845 | /* Log the current client */ |
| 1846 | logCurrentClient(); |
| 1847 | |
| 1848 | /* Log modules info. Something we wanna do last since we fear it may crash. */ |
| 1849 | logModulesInfo(); |
| 1850 | |
| 1851 | /* Run memory test in case the crash was triggered by memory corruption. */ |
| 1852 | doFastMemoryTest(); |
| 1853 | } |
| 1854 | |
| 1855 | void bugReportEnd(int killViaSignal, int sig) { |
| 1856 | struct sigaction act; |
no test coverage detected