summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-12-07 13:05:34 +0100
committerSergei Golubchik <serg@mariadb.org>2018-12-12 00:31:04 +0100
commit07e9b1389857a8c0fee1dfda443ae257982fd2c9 (patch)
tree879bfa4336527aabf9d1ce259a898df2a42fd1da /config.h.cmake
parent97dbb3562b0b230e01605f00e441e8a70d10b6a8 (diff)
downloadmariadb-git-07e9b1389857a8c0fee1dfda443ae257982fd2c9.tar.gz
mysqld: ignore SIGHUP sent by the kernel
SIGHUP causes debug info in the error log and reload of logs/privileges/tables/etc. The server should only do it when a user intentionally sends SUGHUP, not when a parent terminal gets disconnected or something. In particular, not ignoring kernel SIGHUP causes FLUSH PRIVILEGES at some random point during non-systemd Debian upgrades (Debian restarts mysqld, debian-start script runs mysql_upgrade in the background, postinit script ends and kernel sends SIGHUP to all background processes it has started). And during mysql_upgrade privilege tables aren't necessarily ready to be reloaded.
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 3974c2a3618..247d983c501 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -219,6 +219,7 @@
#cmakedefine HAVE_SIGACTION 1
#cmakedefine HAVE_SIGTHREADMASK 1
#cmakedefine HAVE_SIGWAIT 1
+#cmakedefine HAVE_SIGWAITINFO 1
#cmakedefine HAVE_SLEEP 1
#cmakedefine HAVE_SNPRINTF 1
#cmakedefine HAVE_STPCPY 1