GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
File::Flock::Forking(3) User Contributed Perl Documentation File::Flock::Forking(3)

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

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

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'

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

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.