27 Jun
2006
27 Jun
'06
3:58 p.m.
On Tue, 2006-06-27 at 14:46 +0200, Thomas Hummel wrote:
So don't we risk to end up in a situation where the dotlock is ours but the mailbox is still fcntl-locked by another process ?
Actually not with Dovecot. When Dovecot is about to override the stale dotlock, it first tries to do the fcntl locking. If it succeeds, then the dotlock is overridden
And then, I guess it fcntl the mbox again (in the case of an "dotlock fcntl" order), otherwise it would break the order specified, right ?
Right. After testing the fcntl lock is dropped always.