You can also try creating a lock file that processes look for before attempting access to the file.
When a process is done using the real file, it deletes the lock file. You need to handle the case in which a(the) process crashes and doesn't delete the lockfile though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.