in reply to Re^2: How to do atomic file locking?
in thread How to do atomic file locking?

Nevermind. It seems that indeed I can do flock or die.