| 42 | |
| 43 | |
| 44 | static void fatalSignalHandler(int sig) { |
| 45 | // Ignore this signal to avoid recursion. |
| 46 | signal(sig, NULL); |
| 47 | |
| 48 | std::string stackTrace = system::getStackTrace(); |
| 49 | FATAL("Fatal signal %d. Stack trace:\n%s", sig, stackTrace.c_str()); |
| 50 | |
| 51 | // Re-raise signal |
| 52 | raise(sig); |
| 53 | } |
| 54 | |
| 55 | |
| 56 | int main(int argc, char* argv[]) { |
nothing calls this directly
no test coverage detected