| 10905 | } |
| 10906 | |
| 10907 | static void handleSignal( int sig ) { |
| 10908 | char const * name = "<unknown signal>"; |
| 10909 | for (auto const& def : signalDefs) { |
| 10910 | if (sig == def.id) { |
| 10911 | name = def.name; |
| 10912 | break; |
| 10913 | } |
| 10914 | } |
| 10915 | // We need to restore previous signal handlers and let them do |
| 10916 | // their thing, so that the users can have the debugger break |
| 10917 | // when a signal is raised, and so on. |
| 10918 | restorePreviousSignalHandlers(); |
| 10919 | reportFatal( name ); |
| 10920 | raise( sig ); |
| 10921 | } |
| 10922 | |
| 10923 | FatalConditionHandler::FatalConditionHandler() { |
| 10924 | assert(!altStackMem && "Cannot initialize POSIX signal handler when one already exists"); |
nothing calls this directly
no test coverage detected