Implement global advisory lock
This commit is contained in:
parent
9db2b208eb
commit
22ca2ec61e
14 changed files with 288 additions and 92 deletions
|
@ -5,9 +5,7 @@ my $filename = ".revbank.log";
|
|||
sub _log($tag, @message) {
|
||||
@message = ("") if not @message;
|
||||
|
||||
open my $fh, '>>', $filename or warn "$filename: $!";
|
||||
print $fh map(s/^/now() . " $tag "/rgme, @message), "\n";
|
||||
close $fh or warn "$filename: $!";
|
||||
append $filename, map(s/^/now() . " $tag "/rgme, @message), "\n";
|
||||
}
|
||||
|
||||
my %buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue