Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
File::Flock::Forking(3User Contributed Perl DocumentatiFile::Flock::Forking(3)

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.

perl v5.24.1			  2013-09-11	       File::Flock::Forking(3)

NAME | SYNOPSIS | DESCRIPTION | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=File::Flock::Forking&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help