this blocks successfully with two users...does it have any issues with 6 or more users?
If it blocks for two users, it should block just fine for more, but exactly that may be the problem - depending on how frequently you need access, your processes might suffer from starvation. If this is a concern, you may want to consider different strategies. I see you are working in a directory called "logs" - what do you need the lock file for?
In reply to Re: 'flock' with multiple users
by haukex
in thread 'flock' with multiple users
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |