Function handleSignal

Synopsis

#include <include/internal/catch_fatal_condition.h>

static void handleSignal(int sig)

Description

No description yet.

Source

Lines 112-123 in include/internal/catch_fatal_condition.cpp. Line 49 in include/internal/catch_fatal_condition.h.

void FatalConditionHandler::handleSignal( int sig ) {
    char const * name = "<unknown signal>";
    for (auto const& def : signalDefs) {
        if (sig == def.id) {
            name = def.name;
            break;
        }
    }
    reset();
    reportFatal(name);
    raise( sig );
}





Add Discussion as Guest

Log in