sql/mysqld.cc

    put back the things that the merge removed
parent c77547ea
...@@ -1362,6 +1362,7 @@ thread stack. Please read http://www.mysql.com/doc/L/i/Linux.html\n", ...@@ -1362,6 +1362,7 @@ 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
if(!(test_flags & TEST_NO_STACKTRACE))
trace_stack(); trace_stack();
fflush(stderr); fflush(stderr);
#endif /* LINUX_STACK_TRACE */ #endif /* LINUX_STACK_TRACE */
...@@ -1398,7 +1399,7 @@ static void init_signals(void) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment