| 39 | } |
| 40 | |
| 41 | static void crashdump(int sig) |
| 42 | { |
| 43 | char why[100]; |
| 44 | |
| 45 | snprintf(why, 100, "FATAL SIGNAL %d", sig); |
| 46 | send_backtrace(why); |
| 47 | |
| 48 | /* Probably shouldn't return. */ |
| 49 | bt_exit(); |
| 50 | |
| 51 | /* This time it will kill us instantly. */ |
| 52 | kill(getpid(), sig); |
| 53 | } |
| 54 | |
| 55 | static void crashlog_activate(void) |
| 56 | { |
nothing calls this directly
no test coverage detected