"Please correct me if I'm wrong, but if I first open then flock, isn't there a non-zero probability that this would cause a race condition?"
You're wrong.
In reply to Re: How to do atomic file locking?
by Anonymous Monk
in thread How to do atomic file locking?
by Acapulco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |