diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-10-06 19:53:55 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-10-06 19:53:55 +0200 |
commit | 1ddfce4840994b6b79a3f426fcedf8f0469334ac (patch) | |
tree | 4a5700c90dacb63f00a8d130e94ba0398b2ee371 /client/mysql.cc | |
parent | c0977073e18d070810c20026defc63794154e288 (diff) | |
parent | 3139aa87b4f215418740939cc8d156150c355823 (diff) | |
download | mariadb-git-1ddfce4840994b6b79a3f426fcedf8f0469334ac.tar.gz |
mysql-5.5.40
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 792830fb79c..8e40cf072cd 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1294,6 +1294,16 @@ int main(int argc,char *argv[]) sig_handler mysql_end(int sig) { +#ifndef _WIN32 + /* + Ingnoring SIGQUIT and SIGINT signals when cleanup process starts. + This will help in resolving the double free issues, which occures in case + the signal handler function is started in between the clean up function. + */ + signal(SIGQUIT, SIG_IGN); + signal(SIGINT, SIG_IGN); +#endif + mysql_close(&mysql); #ifdef HAVE_READLINE if (!status.batch && !quick && !opt_html && !opt_xml && |