The stupid question is the question not asked | |
PerlMonks |
Re: (OT) Question on flockby Anonymous Monk |
on Oct 01, 2014 at 20:03 UTC ( [id://1102583]=note: print w/replies, xml ) | Need Help?? |
As the documentation says, flocks are merely advisory, meaning they only work when all programs that access the file cooperate and use the same locking mechanism. Also, as Corion already noted, a lot of file locking mechanisms don't work properly over a lot of different network file systems. Why do you want to lock the files - are you trying to coordinate different processes of yours, or are you actually trying to prevent others from accessing the files?
In Section
Seekers of Perl Wisdom
|
|