don't unlock the counterfile/lockfile, just close them. this flushes the buffers and releases locks and closes in a fairly atomic fashion....that's another bug in the original code.
Modern versions of Perl flush file buffers before locking or unlocking a file. This is even documented.
Abigail
In reply to Re: Mysterious Disapperance of file contents
by Abigail-II
in thread Mysterious Disapperance of file contents
by Gorby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |