mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Remove pidfile after killing serve
This commit is contained in:
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user