[debian-mysql] Bug#527623: mysql-server-5.0: 38_scripts__mysqld_safe.sh__signals.dpatch is inherently

Mathias Gug mathiaz at ubuntu.com
Tue May 12 16:21:39 UTC 2009


Here is a patch applied in Ubuntu that adresses the issue.

The problem comes from the fact that mysqld_safe starts mysqld and then
waits for its crash. However installing a trap for SIGHUP makes the wait
command return immediately when a SIGHUP is received by mysqld_safe.
This leads mysqld_safe to proceed and kill the remaining mysqld process
(which hasn't crashed). The proposed fix is to add a wait command to the
trap.

More information can be found in the Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/326768

-- 
Mathias Gug
Ubuntu Developer  http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trap.diff
Type: text/x-diff
Size: 804 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20090512/804ea413/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20090512/804ea413/attachment.pgp>


More information about the pkg-mysql-maint mailing list