[Dovecot] mbox locking
Thomas Hummel
hummel at pasteur.fr
Tue Jun 27 15:46:31 EEST 2006
On Tue, Jun 27, 2006 at 03:19:23PM +0300, Timo Sirainen wrote:
> The idea is to override dotlock files that have been left around by
> proceses
I see.
> > 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 ?
--
Thomas Hummel | Institut Pasteur
<hummel at pasteur.fr> | Pôle informatique - systèmes et réseau
More information about the dovecot
mailing list