[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Some confusion with flock.



On Fri, 24 Oct 2025, Nicolas George wrote:


But what you did here was translate word-for-word your dot-locking
mechanism into flock: you gained nothing, and it is awkward: you use the
-n option that means ?do not wait for the lock? in a loop that says
?waiting for the lock?, it is absurd.

To reap the benefits from migration to flock, you need to use the first
syntax shown in the man page.


Yes, I agree that it's absurd to have code that periodically warns you it's waiting for something else to complete, particularly when the only reason I found this was that it was warning me that it was waiting.

Far, far better to have it silently hung and never update the firewall.

I'll change it straight away.


Reply to: