http://qs1969.pair.com?node_id=717032


in reply to Re^2: Waiting for a file to be written
in thread Waiting for a file to be written

Trivial 2-party locking mechanism:
Why not have the child delete the file when it is finished with it?
The parent can then wait for the file to disappear before creating the next version of it.