in reply to Re^2: Ways to sequence calls from multiple processes
in thread Ways to sequence calls from multiple processes

Well, one surely nice thing by OS-native file locking, is that a flock is automatically released if a process ends without releasing the lock itself, or closing the file. That includes crashes and being killed by other processes. There simply is no problem.

I quite like the idea of all subsequent access being blocked if there was a failure. It brings the failure to the admin's attention so he can investigate why it failed in the first place.

  • Comment on Re^3: Ways to sequence calls from multiple processes