A common solution is to use a different file for the cooperative locking. Make a file, "lockfile_logx" and get and release locks on that file's file handle to protect all of the operations on $file.
In reply to Re: Vexing Race Condition
by Marshall
in thread Vexing Race Condition
by Maelstrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |