summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <jani@a88-113-38-195.elisa-laajakaista.fi>2007-02-09 13:03:37 +0200
committerunknown <jani@a88-113-38-195.elisa-laajakaista.fi>2007-02-09 13:03:37 +0200
commit5c1f67d31223ca769345eee7209796c552caae27 (patch)
treea313015ce284e84fd2f573ce753ed1f4af48e0ec
parent7be3cad45d0dccb3538fe797c9ac81358f92f691 (diff)
downloadmariadb-git-5c1f67d31223ca769345eee7209796c552caae27.tar.gz
Fixes a compilation problem on Windows. Backport of the
same fix from 4.0.
-rw-r--r--sql/mysqld.cc4
1 files changed, 4 insertions, 0 deletions
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.