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 reply to Re: (OT) Question on flock
by Anonymous Monk
in thread (OT) Question on flock
by kprasanna_79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |