Changeset 815 for LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm
- Timestamp:
- 03/03/10 22:50:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm
r668 r815 8 8 use LATMOS::Accounts::Log; 9 9 use LATMOS::Accounts::Utils qw(exec_command); 10 use Fcntl qw(:flock); 10 11 11 12 =head1 NAME … … 143 144 } 144 145 145 use Fcntl qw(:flock);146 147 146 sub lock { 148 147 my ($self) = @_; 149 148 150 149 $self->{lock}{handle} and return 1; 150 la_log(LA_DEBUG, "Trying to lock (pid $$)"); 151 151 if ($self->{options}{state_dir}) { 152 152 my $lockfile = $self->{options}{state_dir} . '/synclock'; … … 155 155 $self->{lock}{handle} = $handle; 156 156 $self->{lock}{filename} = $lockfile; 157 la_log(LA_DEBUG, "lock done (pid $$)"); 157 158 return 1; 158 159 } else { return 1 }
Note: See TracChangeset
for help on using the changeset viewer.