10 May
2006
10 May
'06
4:42 p.m.
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