Permalink
Browse files

Make SIGSEGV and SIGABRT handle cleanly and THEN coredump

  • Loading branch information...
1 parent baee9ac commit a22afa3276d5553fde45d6ad5afa9318379ba1a5 @Beirdo Beirdo committed May 2, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 mythtv/libs/libmythbase/signalhandling.cpp
View
8 mythtv/libs/libmythbase/signalhandling.cpp
@@ -140,11 +140,15 @@ void SignalHandler::handleSignal(void)
break;
case SIGSEGV:
LOG(VB_GENERAL, LOG_CRIT, "Received SIGSEGV");
- qApp->quit();
+ signal(SIGSEGV, SIG_DFL);
+ usleep(100000);
+ raise(signum);
break;
case SIGABRT:
LOG(VB_GENERAL, LOG_CRIT, "Received SIGABRT");
- qApp->quit();
+ signal(SIGABRT, SIG_DFL);
+ usleep(100000);
+ raise(signum);
break;
case SIGUSR1:
LOG(VB_GENERAL, LOG_CRIT, "Received SIGUSR1");

0 comments on commit a22afa3

Please sign in to comment.