mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql-next-mr (revno 2882) --> mysql-trunk-signal
This commit is contained in:
@ -2138,15 +2138,14 @@ static void init_signals(void)
|
||||
win_install_sigabrt_handler();
|
||||
if(opt_console)
|
||||
SetConsoleCtrlHandler(console_event_handler,TRUE);
|
||||
else
|
||||
{
|
||||
|
||||
/* Avoid MessageBox()es*/
|
||||
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
|
||||
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
|
||||
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
|
||||
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
|
||||
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
|
||||
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
|
||||
|
||||
/*
|
||||
Do not use SEM_NOGPFAULTERRORBOX in the following SetErrorMode (),
|
||||
@ -2155,8 +2154,8 @@ static void init_signals(void)
|
||||
exception filter is not guaranteed to work in all situation
|
||||
(like heap corruption or stack overflow)
|
||||
*/
|
||||
SetErrorMode(SetErrorMode(0)|SEM_FAILCRITICALERRORS|SEM_NOOPENFILEERRORBOX);
|
||||
}
|
||||
SetErrorMode(SetErrorMode(0) | SEM_FAILCRITICALERRORS
|
||||
| SEM_NOOPENFILEERRORBOX);
|
||||
SetUnhandledExceptionFilter(my_unhandler_exception_filter);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user