[Dovecot] v1.1.2 released

Timo Sirainen tss at iki.fi
Mon Aug 4 23:13:01 EEST 2008


On Aug 4, 2008, at 3:04 PM, Kyle Wheeler wrote:

> The issue, I think, is that maildirlock has a race condition. There  
> is no guarantee that the parent has set up its signal handlers  
> before the child gets around to killing it.

Oh, you're right.

> I think signals are probably a bad way of handling this inter- 
> process communication. How about using a pipe? I've attached a patch  
> that seems to work.

It would have been possible to also set up the signal handlers before  
the forking, but on OS X I seem to be getting the SIGCHLD signal  
before the SIGTERM.. So I changed the code to use a pipe: http://hg.dovecot.org/dovecot-1.1/rev/635a988626d0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080804/8ee50843/attachment.bin 


More information about the dovecot mailing list