diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-10-02 13:52:51 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-10-02 13:52:51 +0200 |
commit | 11242006adf0bed6f5042b69816360593c23a13a (patch) | |
tree | 079e531f107d13b35bec6071556e5723ed5f5c70 /sql | |
parent | 9d4b365d5d747cf26e89c118bfb9fc93af417cab (diff) | |
download | mariadb-git-11242006adf0bed6f5042b69816360593c23a13a.tar.gz |
MDEV-6461 mysqld should not trap SIGTSTP if running with --gdb/--debug-gdb
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 0559afa7616..95f439fd489 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -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); |