Remove any old pidfile before starting mysqld to make sure that

'mysqld_wait_started' don't return prematurely because of an old
pidfile
This commit is contained in:
unknown 2007-08-29 17:54:02 +02:00
parent 305c352685
commit 10012b36fe

View File

@ -3825,6 +3825,9 @@ sub mysqld_start ($$$) {
$wait_for_pid_file= 0; $wait_for_pid_file= 0;
} }
# Remove the pidfile
unlink($mysqld->{'path_pid'});
if ( defined $exe ) if ( defined $exe )
{ {
$pid= mtr_spawn($exe, $args, "", $pid= mtr_spawn($exe, $args, "",