diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 43d76f28007..59ea766b5c8 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2251,7 +2251,11 @@ int main(int argc, char **argv) #endif /* Set signal used to kill MySQL */ +#if defined(SIGUSR2) thr_kill_signal= thd_lib_detected == THD_LIB_LT ? SIGINT : SIGUSR2; +#else + thr_kill_signal= SIGINT; +#endif /* Init mutexes for the global MYSQL_LOG objects.