Skip to content

Commit

Permalink
iox-eclipse-iceoryx#1755 Rename sigHandler function
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Apr 13, 2023
1 parent 436db65 commit 4523a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iceoryx_hoofs/testing/testing_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ std::vector<std::string> TestingLogger::getLogMessages() noexcept
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) global variable is required as jmp target
jmp_buf exitJmpBuffer;

static void sigsegvHandler(int sig, siginfo_t*, void*)
static void sigHandler(int sig, siginfo_t*, void*)
{
switch (sig)
{
Expand Down Expand Up @@ -162,7 +162,7 @@ void LogPrinter::OnTestStart(const ::testing::TestInfo&)
sigemptyset(&action.sa_mask);

action.sa_flags = SA_NODEFER;
action.sa_sigaction = sigsegvHandler;
action.sa_sigaction = sigHandler;

sigaction(SIGSEGV, &action, nullptr);
sigaction(SIGFPE, &action, nullptr);
Expand Down

0 comments on commit 4523a08

Please sign in to comment.