27 Jun
2006
27 Jun
'06
3:46 p.m.
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@pasteur.fr | Pôle informatique - systèmes et réseau