File::...orking(3pm)
hey bestie, this is the File::Flock::Forking(3pm) page from User Contributed Perl Documentation, and it's literally here to make File::Flock behave when fork() enters the chat π
π NAME π
File::Flock::Forking β adjust File::Flock to handle fork() π«Ά
β¨ SYNOPSIS β¨
use File::Flock::Forking;
use File::Flock;
π¦ DESCRIPTION π¦
okay so the whole purpose of File::Flock::Forking is to change the implementation of File::Flock so it handles locking on systems that do not hold locks across calls to fork() π
If you're using File::Flock β or any module that uses File::Flock β and your program uses fork(), then you should import File::Flock::Forking before you import File::Flock or any module that uses File::Flock. order matters, bestie π«Ά
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 β yes, that capital I is literally what the page says, iykyk β by setting:
$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. π
and that's the whole page, bestie π signing off with the footer energy: perl v5.42.0, dated 2015-04-17 π
π¦ where this page comes from
- opensuse-leap 16.0: perl-File-Flock 2014.01-bp160.1.11 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms