in reply to File Locking revisited
That said, sometimes I avoid locking if I have the luxury of moving the file to a private directory that no other process will use in the same file system. In this case, with a single file, the move tends to be atomic. Since you are using two files, there are probably other race conditions you have to worry about here so YMMV.
|
|---|