[Dovecot] mbox locking

Timo Sirainen tss at iki.fi
Tue Jun 27 15:58:28 EEST 2006


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060627/bb725567/attachment.pgp


More information about the dovecot mailing list