Don't warn about "Found non pid file" for elements that are not files.

parent e235c8c4
...@@ -441,7 +441,6 @@ sub mtr_kill_leftovers () { ...@@ -441,7 +441,6 @@ sub mtr_kill_leftovers () {
# Only read pid from files that end with .pid # Only read pid from files that end with .pid
if ( $elem =~ /.*[.]pid$/) if ( $elem =~ /.*[.]pid$/)
{ {
my $pidfile= "$rundir/$elem"; my $pidfile= "$rundir/$elem";
if ( -f $pidfile ) if ( -f $pidfile )
...@@ -465,7 +464,8 @@ sub mtr_kill_leftovers () { ...@@ -465,7 +464,8 @@ sub mtr_kill_leftovers () {
} }
else else
{ {
mtr_warning("Found non pid file $elem in $rundir"); mtr_warning("Found non pid file $elem in $rundir")
if -f "$rundir/$elem";
next; next;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment