From 2149a42928f961112e65944e4b0d7639416e6f50 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Tue, 3 Apr 2012 15:42:26 +0300 Subject: [PATCH] Don't disable core on signal just becasue platform doesn't handle stack traces --- sql/mysqld.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 36be99fc25c..305fa1f1e71 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -830,9 +830,7 @@ char *opt_logname, *opt_slow_logname; /* Static variables */ static volatile sig_atomic_t kill_in_progress; -#ifdef HAVE_STACKTRACE my_bool opt_stack_trace; -#endif /* HAVE_STACKTRACE */ my_bool opt_expect_abort= 0; static my_bool opt_bootstrap, opt_myisam_log; static int cleanup_done; @@ -2678,7 +2676,6 @@ static void init_signals(void) 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)) { sa.sa_flags = SA_RESETHAND | SA_NODEFER; @@ -2701,7 +2698,6 @@ static void init_signals(void) sigaction(SIGILL, &sa, NULL); sigaction(SIGFPE, &sa, NULL); } -#endif #ifdef HAVE_GETRLIMIT if (test_flags & TEST_CORE_ON_SIGNAL)