Fix $glock scope

Thanks to Thomas Wagner wagner-thomas@gmx.at
tags/virt-backup-0.2.23-1
Daniel Berteaud 5 years ago
parent 94537b4c81
commit fc764cd421
  1. 2
      virt-backup

@ -250,7 +250,7 @@ my $locker = LockFile::Simple->make(
my $glock = undef; my $glock = undef;
if ($opts{action} =~ m/^dump|convert|chunkmount$/){ if ($opts{action} =~ m/^dump|convert|chunkmount$/){
print "Trying to acquire an exclusive lock\n" if ($opts{debug}); print "Trying to acquire an exclusive lock\n" if ($opts{debug});
my $glock = $locker->lock($opts{lockdir} . '/virt-backup') || die "Can't acquire exclusive lock\n"; $glock = $locker->lock($opts{lockdir} . '/virt-backup') || die "Can't acquire exclusive lock\n";
} }
foreach our $vm (@vms){ foreach our $vm (@vms){

Loading…
Cancel
Save