Thanks! I was not aware of this.
So now my question is, if two files get to open the file (I'm working on Linux 2.6 kernel so I guess this can happen) but only one gets the lock.
Which call will fail? The flock one? can I do "flock or die"?
Again, thanks a lot. I couldn't find any references to this behavior.
In reply to Re^2: How to do atomic file locking?
by Acapulco
in thread How to do atomic file locking?
by Acapulco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |