[Dovecot] RE: epoll error when running as proxy

Václav Haisman V.Haisman at sh.cvut.cz
Fri Feb 10 00:56:12 EET 2006



Bill Boebel wrote:
>>> imap-login: io_loop_handle_add: epoll_ctl(op=3, fd=10, ret=-1, errno=2):
>>> No such file or directory
>>>
>> Could it be that similarly to kqueue on *BSD the Linux kernel
>> unregisters/removes the handle automatically when it gets closed? And
>> that dovecot closes it before unregistering it from epoll?
>>
> 
> I don't know enough about epoll to answer that.  I do see that in
> src/lib/ioloop-epoll.c, the "io_loop_handler_init()" function calls this,
> which sounds related.:
> 
>        fd_close_on_exec(ctx->epfd, TRUE);
> 
> But again, I am not very familiar with the specifics of epoll.  Maybe
> somebody else on this list knows?
This means the fd will be closed on exec() but I mean the case where the
fd is closed by hand without exec().

And to answer my own question (question/answer 6):
http://www.die.net/doc/linux/man/man4/epoll.4.html

I think it might be the cause of the error message.

> 
> Thanks,
> Bill

VH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 542 bytes
Desc: OpenPGP digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20060209/026029b5/signature.pgp


More information about the dovecot mailing list