Bug #35568 "mysqladmin -S <SOCKET> shutdown" returns to shell without instance stopped
Submitted: 26 Mar 2008 7:23 Modified: 11 Jun 2008 15:51
Reporter: Olaf Hansen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.1.23 OS:Linux (SLES 10)
Assigned to: CPU Architecture:Any
Tags: mysqladmin, shutdown

[26 Mar 2008 7:23] Olaf Hansen
Description:
OS : SLES 10 64bit
MySQL 5.1.23 64bit (Linux non rpm package AMD/Intel 64bit)

Command "mysqladmin -S <SOCKET> shutdown" returns to shell with return code=0 without MySQL instance completely down and pid file not removed.

We tested with 5.1.23 32bit too and everything alright. Problem seems to be only in 5.1.xx 64bit.

How to repeat:
Repro with shell script:
  mysqladmin -S <SOCKET> shutdown
  ls -l <PID file>

According to MySQL Documentation for 5.1 (Chapter 4.5.2) when executing the script, PID file should not be found. But it does.
[26 Mar 2008 9:55] Susanne Ebrecht
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

$ ls var/
ib_logfile0
ib_logfile1
ibdata1
mycomputer.pid
mysql
test

$ bin/mysqladmin -S /tmp/mysocket.sock shutdown

$ ls var/
ib_logfile0
ib_logfile1
ibdata1
mysql
test

Tested with:
5.1.24-rc-debug
Ubuntu AMD64
FreeBSD AMD64