Commit 11242006 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6461 mysqld should not trap SIGTSTP if running with --gdb/--debug-gdb

parent 9d4b365d
......@@ -2948,9 +2948,6 @@ static void init_signals(void)
sa.sa_flags = 0;
sa.sa_handler = print_signal_warning;
sigaction(SIGHUP, &sa, (struct sigaction*) 0);
#ifdef SIGTSTP
sigaddset(&set,SIGTSTP);
#endif
if (thd_lib_detected != THD_LIB_LT)
sigaddset(&set,THR_SERVER_ALARM);
if (test_flags & TEST_SIGINT)
......@@ -2960,7 +2957,12 @@ static void init_signals(void)
sigdelset(&set, SIGINT);
}
else
{
sigaddset(&set,SIGINT);
#ifdef SIGTSTP
sigaddset(&set,SIGTSTP);
#endif
}
sigprocmask(SIG_SETMASK,&set,NULL);
pthread_sigmask(SIG_SETMASK,&set,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