Don't disable core on signal just becasue platform doesn't handle stack traces
This commit is contained in:
parent
1c6d95f3bb
commit
2149a42928
@ -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)
|
|||||||
|
|
||||||
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)
|
|||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user