File::Flock::Forking(3pm)

File::Flock::Forking3pm

Usage

 use File::Flock::Forking;
 use File::Flock;

Overview

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'

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–10
  2. 11
  3. 12–13

License

Copyright (C) 2013 Google, Inc. This module may be used/copied/etc on the same terms as Perl itself.

From libfile-flock-perl 2014.01-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.