diff options
author | unknown <monty@bitch.mysql.fi> | 2001-08-11 11:33:48 +0300 |
---|---|---|
committer | unknown <monty@bitch.mysql.fi> | 2001-08-11 11:33:48 +0300 |
commit | 152de4fee90d935d9845d4e46b4de707044abcf1 (patch) | |
tree | 26d524a297279635d550d07a477bb6963b21cbe4 /sql | |
parent | 11b0c8322bf3ac57c73fe1c891c0dd331152b299 (diff) | |
parent | cb1c0b08187ba3b7bea7db158ad4d42329fd1162 (diff) | |
download | mariadb-git-152de4fee90d935d9845d4e46b4de707044abcf1.tar.gz |
Merge hundin:/my/mysql into bitch.mysql.fi:/my/mysql
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 99d05fa73e4..49c8be0f363 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -576,16 +576,16 @@ void kill_mysql(void) // CloseHandle(hEvent); } #elif defined(HAVE_PTHREAD_KILL) - if (pthread_kill(signal_thread,SIGTERM)) /* End everything nicely */ - { - DBUG_PRINT("error",("Got error %d from pthread_kill",errno)); /* purecov: inspected */ - } + if (pthread_kill(signal_thread,MYSQL_KILL_SIGNAL))// End everything nicely + { + DBUG_PRINT("error",("Got error %d from pthread_kill",errno)); /* purecov: inspected */ + } #else - kill(current_pid,SIGTERM); + kill(current_pid,MYSQL_KILL_SIGNAL); #endif - DBUG_PRINT("quit",("After pthread_kill")); - shutdown_in_progress=1; // Safety if kill didn't work - DBUG_VOID_RETURN; + DBUG_PRINT("quit",("After pthread_kill")); + shutdown_in_progress=1; // Safety if kill didn't work + DBUG_VOID_RETURN; } @@ -1248,8 +1248,8 @@ static void init_signals(void) sigaddset(&set,SIGQUIT); sigaddset(&set,SIGTERM); sigaddset(&set,SIGHUP); - signal(SIGTERM,SIG_DFL); // If it's blocked by parent - signal(SIGHUP,SIG_DFL); // If it's blocked by parent + sigset(SIGTERM,print_signal_warning); // If it's blocked by parent + signal(SIGHUP,print_signal_warning); // If it's blocked by parent #ifdef SIGTSTP sigaddset(&set,SIGTSTP); #endif @@ -1344,7 +1344,7 @@ static void *signal_hand(void *arg __attribute__((unused))) int error; // Used when debugging if (shutdown_in_progress && !abort_loop) { - sig=SIGTERM; + sig= MYSQL_KILL_SIGNAL; error=0; } else |