You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Fix sig handler for ExeMgr
A bad merge for in MCOL-1085 means that ExeMgr is missing the crash handler. This adds it.
This commit is contained in:
@ -1168,10 +1168,12 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef _MSC_VER
|
||||
void exit_(int)
|
||||
{
|
||||
exit(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
void added_a_pm(int)
|
||||
{
|
||||
@ -1216,7 +1218,6 @@ void printTotalUmMemory(int sig)
|
||||
void setupSignalHandlers()
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
signal(SIGSEGV, exit_);
|
||||
signal(SIGINT, exit_);
|
||||
signal(SIGTERM, exit_);
|
||||
#else
|
||||
@ -1232,6 +1233,11 @@ void setupSignalHandlers()
|
||||
sigaction(SIGHUP, &ign, 0);
|
||||
ign.sa_handler = printTotalUmMemory;
|
||||
sigaction(SIGUSR1, &ign, 0);
|
||||
memset(&ign, 0, sizeof(ign));
|
||||
ign.sa_handler = fatalHandler;
|
||||
sigaction(SIGSEGV, &ign, 0);
|
||||
sigaction(SIGABRT, &ign, 0);
|
||||
sigaction(SIGFPE, &ign, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -1305,6 +1311,9 @@ int main(int argc, char* argv[])
|
||||
string systemLang = "C";
|
||||
systemLang = funcexp::utf8::idb_setlocale();
|
||||
|
||||
// This is unset due to the way we start it
|
||||
program_invocation_short_name = const_cast<char*>("ExeMgr");
|
||||
|
||||
gDebug = 0;
|
||||
bool eFlg = false;
|
||||
int c;
|
||||
|
Reference in New Issue
Block a user