Michael Sperber [Mr. Preprocessor] wrote:
Jan> I propose that it should (by default) always use dotlocking
(even
Jan> together with any other method).
I don't believe that's a good idea: Locking would no longer be atomic,
and you can get deadlocks that way.
I don't think that it's that big a problem. If the second lock fails,
you release the first lock and wait for a bit. Then the worst that can
happen is a livelock.
FWIW, procmail (on Linux at least) uses both dot-locking and kernel
locks (can't remember whether it's flock, fcntl or lockf).
--
Glynn Clements <glynn(a)sensei.co.uk>