[Dovecot] Dovecot-1.1.15 panics

Timo Sirainen tss at iki.fi
Tue Jul 28 22:51:14 EEST 2009


This is the main reason it keeps breaking:

Terminal 1:
while true; do touch foo.tmp; mv foo.tmp foo; done

Termanal 2:
while true; do cat foo; done

foo always exists, because POSIX guarantees that rename is atomic. But
terminal 2 keeps failing randomly:

cat: No such file or directory

So, apparently HFS+'s rename() isn't really atomic after all..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090728/d4536502/attachment.bin 


More information about the dovecot mailing list