diff --git a/apache/apache-lib.pl b/apache/apache-lib.pl index 0504e16b1..49ed4808a 100755 --- a/apache/apache-lib.pl +++ b/apache/apache-lib.pl @@ -1334,7 +1334,8 @@ sub lock_apache_files { local $conf = &get_config(); local $f; -foreach $f (&unique(map { $_->{'file'} } @$conf)) { +@main::locked_apache_files = &unique(map { $_->{'file'} } @$conf); +foreach $f (@main::locked_apache_files) { &lock_file($f); } } @@ -1343,9 +1344,10 @@ sub unlock_apache_files { local $conf = &get_config(); local $f; -foreach $f (&unique(map { $_->{'file'} } @$conf)) { +foreach $f (@main::locked_apache_files) { &unlock_file($f); } +@main::locked_apache_files = ( ); } # directive_lines(directive, ...)