summaryrefslogtreecommitdiff
path: root/server-tools
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@booka.opbmk>2007-02-24 13:18:09 +0300
committerunknown <anozdrin/alik@booka.opbmk>2007-02-24 13:18:09 +0300
commit8251e016d7ddc5efbefab0edbcef461d4b60d747 (patch)
treef100ce04393f9d3d63d537c173c2ecf23606bbd2 /server-tools
parentf44759c71d870585b661ff6e6aa746a3c1fa4ede (diff)
downloadmariadb-git-8251e016d7ddc5efbefab0edbcef461d4b60d747.tar.gz
Fix for BUG#22511: IM does not remove angel-pid-file on clean shutdown
server-tools/instance-manager/mysqlmanager.cc: Delete IM-angel pid file on exit.
Diffstat (limited to 'server-tools')
-rw-r--r--server-tools/instance-manager/mysqlmanager.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-tools/instance-manager/mysqlmanager.cc b/server-tools/instance-manager/mysqlmanager.cc
index 83918092454..4f378c61ca4 100644
--- a/server-tools/instance-manager/mysqlmanager.cc
+++ b/server-tools/instance-manager/mysqlmanager.cc
@@ -355,6 +355,10 @@ spawn:
sleep(1); /* don't respawn too fast */
goto spawn;
}
+
+ /* Delete IM-angel pid file. */
+ my_delete(Options::angel_pid_file_name, MYF(0));
+
/*
mysqlmanager successfully exited, let's silently evaporate
If we return to main we fall into the manager() function, so let's