[Dovecot] 1.0.beta2 released

Timo Sirainen tss at iki.fi
Sun Jan 29 13:56:27 EET 2006


On Sun, 2006-01-29 at 12:47 +0100, Václav Haisman wrote:
> > if ((fds[fd].mode & (IO_READ | IO_ERROR)) == 0)
> > 	if (kevent(ctx->kq, &ev, 1, NULL, 0, NULL) == -1 && errno != EBADF) {
> The nature of kqueue is that it automatically removes/unregisters all
> filters associated with handle if the handle is closed and thus if the
> user of the ioloop code tries to remove the handle after it has been
> already closed then he gets EBADF.

In that case I think it'd be better to make sure io_remove() is always
called before the file descriptor is closed. That way the real EBADF
errors are catched, if there ever happened to be those for some reason.
I'll start moving those io_remove()s..

-------------- 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/20060129/65c3a017/attachment.pgp


More information about the dovecot mailing list