MCPcopy Create free account
hub / github.com/apache/trafficserver / handleSignal

Function handleSignal

lib/catch2/catch.hpp:10907–10921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls 2

reportFatalFunction · 0.85

Tested by

no test coverage detected