How to lock a file on Posix systems? I know how joe and OpenOffice lock the file being edited. But:
What is the right way to lock a file across multiple processes? The method that joe and OpenOffice use to lock the file is not protected against different applications.
