diff options
author | unknown <serg@sergbook.mysql.com> | 2007-03-24 14:03:27 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2007-03-24 14:03:27 +0200 |
commit | a1e7490f411ac2d47c9fd548922e7f0fa21e4e26 (patch) | |
tree | 85ad17380283d8fe1d899b32daf36e5a2cf1c2bb /sql | |
parent | d89329c68586b11984d86f3701f08c4a08f0a895 (diff) | |
download | mariadb-git-a1e7490f411ac2d47c9fd548922e7f0fa21e4e26.tar.gz |
nptl: typo fixed. sigaddset restored
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index e26bd31a00a..51332053df6 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -622,7 +622,7 @@ static void close_connections(void) DBUG_PRINT("info",("Waiting for select thread")); #ifndef DONT_USE_THR_ALARM - if (pthread_kill(select_thread, THR_SERVER_ALARM)) + if (pthread_kill(select_thread, thr_client_alarm)) break; // allready dead #endif set_timespec(abstime, 2); @@ -2120,6 +2120,8 @@ static void init_signals(void) #ifdef SIGTSTP sigaddset(&set,SIGTSTP); #endif + if (thd_lib_detected != THD_LIB_LT) + sigaddset(&set,THR_SERVER_ALARM); if (test_flags & TEST_SIGINT) { // May be SIGINT @@ -3157,7 +3159,7 @@ int main(int argc, char **argv) #if defined(SIGUSR2) thr_kill_signal= thd_lib_detected == THD_LIB_LT ? SIGINT : SIGUSR2; #else - thr_kill_signal= thd_lib_detected == SIGINT; + thr_kill_signal= SIGINT; #endif #ifdef _CUSTOMSTARTUPCONFIG_ |