mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
sql/mysqld.cc
put back the things that the merge removed sql/mysqld.cc: put back the things that the merge removed
This commit is contained in:
@ -1362,7 +1362,8 @@ thread stack. Please read http://www.mysql.com/doc/L/i/Linux.html\n",
|
|||||||
thread_count);
|
thread_count);
|
||||||
}
|
}
|
||||||
#ifdef LINUX_STACK_TRACE
|
#ifdef LINUX_STACK_TRACE
|
||||||
trace_stack();
|
if(!(test_flags & TEST_NO_STACKTRACE))
|
||||||
|
trace_stack();
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
#endif /* LINUX_STACK_TRACE */
|
#endif /* LINUX_STACK_TRACE */
|
||||||
if (test_flags & TEST_CORE_ON_SIGNAL)
|
if (test_flags & TEST_CORE_ON_SIGNAL)
|
||||||
@ -1398,7 +1399,7 @@ static void init_signals(void)
|
|||||||
heap_start = (char*)&__bss_start;
|
heap_start = (char*)&__bss_start;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!(test_flags & TEST_NO_STACKTRACE))
|
if (!(test_flags & TEST_NO_STACKTRACE) || (test_flags & TEST_CORE_ON_SIGNAL))
|
||||||
{
|
{
|
||||||
sa.sa_handler=handle_segfault;
|
sa.sa_handler=handle_segfault;
|
||||||
sigaction(SIGSEGV, &sa, NULL);
|
sigaction(SIGSEGV, &sa, NULL);
|
||||||
|
Reference in New Issue
Block a user