-
-
18 Jul 2014 00:44:53 UTC
- Distribution: File-Flock
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (2045 / 93 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (12.49KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- AnyEvent
- Data::Structure::Util
- File::Slurp
- IO::Event
- Test::SharedFork
- Time::HiRes
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Why not adopt me?
This distribution is up for adoption! If you're interested then please contact the PAUSE module admins via email.NAME
File::Flock::Forking - adjust File::Flock to handle fork()
SYNOPSIS
use File::Flock::Forking; use File::Flock;
DESCRIPTION
The purpose of File::Flock::Forking is to change the implementation of File::Flock to handle locking on systems that do not hold locks across calls to fork().
If you are using File::Flock or any module that uses File::Flock then and your program uses fork(), then you should import File::Flock::Forking before you import File::Flock or any module that uses File::Flock.
On most operating systems, File::Flock::Forking does nothing. On Solaris, it changes the behavior of File::Flock to be implemented by File::Flock::Subprocess.
You can also force it to use FIle::Flock::Subprocess by with
$ENV{FLOCK_FORKING_USE} = 'subprocess'
Or force it to use File::Flock with
$ENV{FLOCK_FORKING_USE} = 'flock'
LICENSE
Copyright (C) 2013 Google, Inc. This module may be used/copied/etc on the same terms as Perl itself.
Module Install Instructions
To install File::Flock, copy and paste the appropriate command in to your terminal.
cpanm File::Flock
perl -MCPAN -e shell install File::Flock
For more information on module installation, please visit the detailed CPAN module installation guide.