| |||||||
|
|
Click here to download plain text source code.
# subroutine name: ReleaseFileLock # Releases the lock file created by subroutine GetFileLock() when we are # done with the original file. # # Input: # $lock_file = filename to use as a temporary lock file # # Global variables used: # $no_flock - disable flock or not # %LOCK_HANDLES - hash of locked file handles sub ReleaseFileLock { if ($no_flock) { my ($lock_file) = @_; close($LOCK_HANDLES{$lock_file}); unlink($lock_file) if (-e $lock_file); } } |
|||||||||||||||||||||
| Copyright © 1999-2007 Atomicsoft Ltd. All Rights Reserved. | ||