your locking method is problematic. the file may be locked by someone else, or modified after you open the file, but before you lock it.
you can solve this and other file locking problems using the techniques outlined in Dominus's file locking tricks and traps.
~Particle *accelerates*
In reply to Re: use die with flock
by particle
in thread use die with flock
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |