mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
Don't bother to remove the pid_file in mtr_kill_leftovers as it could potentially remove a the pidfile before the process is killed.
The pid file will be removed later when var/ directory is recreated.
This commit is contained in:
parent
fa26e83fd2
commit
895d986266
1 changed files with 0 additions and 8 deletions
|
@ -470,14 +470,6 @@ sub mtr_kill_leftovers () {
|
|||
|
||||
mtr_debug("Got pid: $pid from file '$pidfile'");
|
||||
|
||||
# Race, could have been removed between I tested with -f
|
||||
# and the unlink() below, so I better check again with -f
|
||||
|
||||
if ( ! unlink($pidfile) and -f $pidfile )
|
||||
{
|
||||
mtr_error("can't remove $pidfile");
|
||||
}
|
||||
|
||||
if ( $::glob_cygwin_perl or kill(0, $pid) )
|
||||
{
|
||||
mtr_debug("There is process with pid $pid -- scheduling for kill.");
|
||||
|
|
Loading…
Reference in a new issue