Commit 2149a429 authored by Michael Widenius's avatar Michael Widenius

Don't disable core on signal just becasue platform doesn't handle stack traces

parent 1c6d95f3
...@@ -830,9 +830,7 @@ char *opt_logname, *opt_slow_logname; ...@@ -830,9 +830,7 @@ char *opt_logname, *opt_slow_logname;
/* Static variables */ /* Static variables */
static volatile sig_atomic_t kill_in_progress; static volatile sig_atomic_t kill_in_progress;
#ifdef HAVE_STACKTRACE
my_bool opt_stack_trace; my_bool opt_stack_trace;
#endif /* HAVE_STACKTRACE */
my_bool opt_expect_abort= 0; my_bool opt_expect_abort= 0;
static my_bool opt_bootstrap, opt_myisam_log; static my_bool opt_bootstrap, opt_myisam_log;
static int cleanup_done; static int cleanup_done;
...@@ -2678,7 +2676,6 @@ static void init_signals(void) ...@@ -2678,7 +2676,6 @@ static void init_signals(void)
my_sigset(THR_SERVER_ALARM,print_signal_warning); // Should never be called! my_sigset(THR_SERVER_ALARM,print_signal_warning); // Should never be called!
#ifdef HAVE_STACKTRACE
if (opt_stack_trace || (test_flags & TEST_CORE_ON_SIGNAL)) if (opt_stack_trace || (test_flags & TEST_CORE_ON_SIGNAL))
{ {
sa.sa_flags = SA_RESETHAND | SA_NODEFER; sa.sa_flags = SA_RESETHAND | SA_NODEFER;
...@@ -2701,7 +2698,6 @@ static void init_signals(void) ...@@ -2701,7 +2698,6 @@ static void init_signals(void)
sigaction(SIGILL, &sa, NULL); sigaction(SIGILL, &sa, NULL);
sigaction(SIGFPE, &sa, NULL); sigaction(SIGFPE, &sa, NULL);
} }
#endif
#ifdef HAVE_GETRLIMIT #ifdef HAVE_GETRLIMIT
if (test_flags & TEST_CORE_ON_SIGNAL) if (test_flags & TEST_CORE_ON_SIGNAL)
......
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