[Dovecot] Fix for the kevent "Unrecognized event" problem.

Dillon lists at loveturtle.net
Wed May 10 16:42:47 EEST 2006


Václav Haisman wrote:
>> The fix uncovered another related glitch. If we are waiting just on
>> IO_ERROR then we get readable/writable event all the time, because
>> kqueue is level triggered by default and the codition is always present,
>> and the result is busy loop. Adding EV_CLEAR bit in this case should fix it.
>>     
I guess that explains why while the first patch seemed to work imap was 
eating up all my cpu :-)
>>     
> Bah, I was too fast to post. Attached is a corrected patch. The
> condition I have added in the previous should be different.
>
> --
> Vaclav Haisman
>   
So far so good, I just applied it on my FreeBSD/amd64 box and everything 
is behaving.
Thanks for the fix, you rock.

Cheers,
Dillon


More information about the dovecot mailing list