From 10012b36feb18180892201b4afdd995e9e0f1a0a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 29 Aug 2007 17:54:02 +0200 Subject: [PATCH] Remove any old pidfile before starting mysqld to make sure that 'mysqld_wait_started' don't return prematurely because of an old pidfile --- mysql-test/mysql-test-run.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 96c422d4d85..6df64ced2f9 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3825,6 +3825,9 @@ sub mysqld_start ($$$) { $wait_for_pid_file= 0; } + # Remove the pidfile + unlink($mysqld->{'path_pid'}); + if ( defined $exe ) { $pid= mtr_spawn($exe, $args, "",