1File::Flock::Forking(3)User Contributed Perl DocumentatioFnile::Flock::Forking(3)
2
3
4

NAME

6        File::Flock::Forking - adjust File::Flock to handle fork()
7

SYNOPSIS

9        use File::Flock::Forking;
10        use File::Flock;
11

DESCRIPTION

13       The purpose of File::Flock::Forking is to change the implementation of
14       File::Flock to handle locking on systems that do not hold locks across
15       calls to fork().
16
17       If you are using File::Flock or any module that uses File::Flock then
18       and your program uses fork(), then you should import
19       File::Flock::Forking before you import File::Flock or any module that
20       uses File::Flock.
21
22       On most operating systems, File::Flock::Forking does nothing.  On
23       Solaris, it changes the behavior of File::Flock to be implemented by
24       File::Flock::Subprocess.
25
26       You can also force it to use FIle::Flock::Subprocess by with
27
28               $ENV{FLOCK_FORKING_USE} = 'subprocess'
29
30       Or force it to use File::Flock with
31
32               $ENV{FLOCK_FORKING_USE} = 'flock'
33

LICENSE

35       Copyright (C) 2013 Google, Inc.  This module may be used/copied/etc on
36       the same terms as Perl itself.
37
38
39
40perl v5.30.1                      2020-01-30           File::Flock::Forking(3)
Impressum