diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-12-07 13:05:34 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-12-12 00:31:04 +0100 |
commit | 07e9b1389857a8c0fee1dfda443ae257982fd2c9 (patch) | |
tree | 879bfa4336527aabf9d1ce259a898df2a42fd1da /configure.cmake | |
parent | 97dbb3562b0b230e01605f00e441e8a70d10b6a8 (diff) | |
download | mariadb-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 'configure.cmake')
-rw-r--r-- | configure.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 42ba2496105..08eac106e6a 100644 --- a/configure.cmake +++ b/configure.cmake @@ -400,6 +400,7 @@ CHECK_FUNCTION_EXISTS (setlocale HAVE_SETLOCALE) CHECK_FUNCTION_EXISTS (sigaction HAVE_SIGACTION) CHECK_FUNCTION_EXISTS (sigthreadmask HAVE_SIGTHREADMASK) CHECK_FUNCTION_EXISTS (sigwait HAVE_SIGWAIT) +CHECK_FUNCTION_EXISTS (sigwaitinfo HAVE_SIGWAITINFO) CHECK_FUNCTION_EXISTS (sigset HAVE_SIGSET) CHECK_FUNCTION_EXISTS (sleep HAVE_SLEEP) CHECK_FUNCTION_EXISTS (snprintf HAVE_SNPRINTF) |