Changeset 14627 for lang/perl/App-MadEye
- Timestamp:
- 06/26/08 10:59:43 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/App-MadEye/trunk/lib/App/MadEye/Plugin/Check/Flock.pm
r8247 r14627 4 4 use base qw/App::MadEye::Plugin::Base/; 5 5 use LWP::UserAgent; 6 use Fcntl ":flock"; 6 7 7 8 sub check : Hook('check') { … … 10 11 my $file_name = $self->config->{config}->{file} or die "missing file"; 11 12 open $self->{lock_fh} , '>' , $file_name or die $!; 12 my $status = flock( $self->{lock_fh}, 6) or die "cannot get the lock";13 my $status = flock( $self->{lock_fh}, LOCK_EX|LOCK_NB ) or die "cannot get the lock"; 13 14 } 14 15
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)