Package: mysql-dfsg-5.1
Version: 5.1.37-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch: wait in the
SIGHUP trap to avoid killing an existing mysqld process when a HUP signal
is sent to mysqld_safe. Based on Mathias Gug's fix from 5.0 series.
Closes (LP: #418396)
For more information see, http://www.launchpad.net/bugs/418396
-- System Information:
Debian Release: squeeze/sid
APT prefers karmic-updates
APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500,
'karmic-backports'), (500, 'karmic')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-8-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u mysql-dfsg-5.1-5.1.37/debian/changelog mysql-dfsg-5.1-5.1.37/debian/changelog
diff -u mysql-dfsg-5.1-5.1.37/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch mysql-dfsg-5.1-5.1.37/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch
--- mysql-dfsg-5.1-5.1.37/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch
+++ mysql-dfsg-5.1-5.1.37/debian/patches/38_scripts__mysqld_safe.sh__signals.dpatch
@@ -34,7 +34,7 @@
+# From now on, we catch signals to do a proper shutdown of mysqld
+# when signalled to do so.
+#
-+trap '/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf refresh' 1 # HUP
++trap '/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf refresh & wait' 1 # HUP
+trap '/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf shutdown' 2 3 15 # INT QUIT and TERM
+
+#