summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.mysql.com>2008-01-08 11:11:06 +0100
committerunknown <msvensson@pilot.mysql.com>2008-01-08 11:11:06 +0100
commit1292c6f6a31348b9b8bdf84c26113d95bcb5abfa (patch)
tree63574941b3950e71c3acef7c4ff1cfb88f3e8eb2 /mysql-test
parentb13b5c5a4a4969cca51fb94a7f6fba75d60757e0 (diff)
downloadmariadb-git-1292c6f6a31348b9b8bdf84c26113d95bcb5abfa.tar.gz
Remove pidfile after killing serve
Diffstat (limited to 'mysql-test')
-rwxr-xr-xmysql-test/mysql-test-run.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index a4cf7b41310..09b66ee4521 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2747,6 +2747,13 @@ sub stop_all_servers () {
My::SafeProcess::shutdown(0, # shutdown timeout 0 => kill
started(all_servers()));
+ # Remove pidfiles
+ foreach my $server ( all_servers() )
+ {
+ my $pid_file= $server->if_exist('pid-file');
+ unlink($pid_file) if defined $pid_file;
+ }
+
# Mark servers as stopped
map($_->{proc}= undef, all_servers());