[Dovecot] flock problems with index files and passwd-file

Timo Sirainen tss at iki.fi
Fri Mar 16 17:45:22 EET 2007


On Thu, 2007-03-15 at 14:28 +0100, Michal Soltys wrote:
> - imap process creates .temp file (descriptor 0x7 is returned)
> - hardlink is created to that .temp file, as
>    dovecot.index.log.newlock
> - .temp file is removed
> - attempt to open dovecot.index.log is being made (file doesn't exist)
> - imap writes some data to 0x7
> - dovecot.index.log.newlock is renamed to dovecot.index.log
> - 0x7 is flocked
> - dovecot.index.log is opened (descriptor 0x8)
> - attempt to flock 0x8 is made, blocking imap forever

Fixed: http://dovecot.org/list/dovecot-cvs/2007-March/008217.html
-------------- 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/20070316/d06640eb/attachment.pgp 


More information about the dovecot mailing list