AtomicSoft.com Add power to your website!
Home Products Services Support Free
EasyData/SQL
easy-to-use web interface for SQL databases with countless features
AtomicDesk
help desk, FAQ, knowledge base, live support chat - all in one product
Custom programming
Installation
Documentation
HelpDesk
Libraries
Join our newsletter for information on software updates and new releases. You may unsubscribe at any time.



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.