Query: file::flock
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
File::Flock(3pm) User Contributed Perl Documentation File::Flock(3pm)NAMEFile::Flock - file locking with flockSYNOPSISuse File::Flock; lock($filename); lock($filename, 'shared'); lock($filename, undef, 'nonblocking'); lock($filename, 'shared', 'nonblocking'); unlock($filename); my $lock = new File::Flock '/somefile'; lock_rename($oldfilename, $newfilename)DESCRIPTIONLock files using the flock() call. If the file to be locked does not exist, then the file is created. If the file was created then it will be removed when it is unlocked assuming it's still an empty file. Locks can be created by new'ing a File::Flock object. Such locks are automatically removed when the object goes out of scope. The unlock() method may also be used. lock_rename() is used to tell File::Flock when a file has been renamed (and thus the internal locking data that is stored based on the filename should be moved to a new name). unlock() the new name rather than the original name.LICENSEFile::Flock may be used/modified/distibuted on the same terms as perl itself.AUTHORDavid Muir Sharnoff <muir@idiom.org> perl v5.10.1 2008-03-28 File::Flock(3pm)
Related Man Pages |
---|
apache::session::lock::file(3) - suse |
apache::session::lock::file(3pm) - debian |
file::nfslock(3pm) - debian |
io::lockedfile(3pm) - debian |
mail::box::locker(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Mutex in Perl |