| 76 | } |
| 77 | |
| 78 | static void crashdump(int sig) |
| 79 | { |
| 80 | char why[100]; |
| 81 | |
| 82 | snprintf(why, 100, "FATAL SIGNAL %d", sig); |
| 83 | send_backtrace(why); |
| 84 | |
| 85 | /* Probably shouldn't return. */ |
| 86 | if (bt_exit) |
| 87 | bt_exit(); |
| 88 | |
| 89 | /* This time it will kill us instantly. */ |
| 90 | kill(getpid(), sig); |
| 91 | } |
| 92 | |
| 93 | static void crashlog_activate(void) |
| 94 | { |
nothing calls this directly
no test coverage detected