« Return to Thread: kpoll still using select

Re: kpoll still using select

by Sverker Eriksson :: Rate this Message:

Reply to Author | View in Thread

I wrote:
> You don't have to edit any system headers.
>
Incorrect. I see your point.
You patch FD_SETSIZE to make the bit-mask in fd_set larger and avoid
memory overwrites by FD_SET and FD_CLR.

But that will give you even more dangerous semantics. A call to
driver_select with a large fd that kernel poll does not support
will be silently accepted but you will never get any events from it.

What would be needed is a patch to erl_poll.c that checks fd against
FD_SETSIZE before calling FD_SET or FD_CLR.

/Sverker, Erlang/OTP

________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org

 « Return to Thread: kpoll still using select