How can be avoided in Linux the file corruption due to simultaneous write access from two different process? Or how can it be avoided to access the same file by two different process? I experienced a few (but painful) data loss due to this problem, and I'm unable to solve the problem.