MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / handleSignal

Method handleSignal

unittests/catch.hpp:7393–7404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7391 };
7392
7393 void FatalConditionHandler::handleSignal( int sig ) {
7394 char const * name = "<unknown signal>";
7395 for (auto const& def : signalDefs) {
7396 if (sig == def.id) {
7397 name = def.name;
7398 break;
7399 }
7400 }
7401 reset();
7402 reportFatal(name);
7403 raise( sig );
7404 }
7405
7406 FatalConditionHandler::FatalConditionHandler() {
7407 isSet = true;

Callers

nothing calls this directly

Calls 1

reportFatalFunction · 0.85

Tested by

no test coverage detected