R8B-0 devpoll patch
Artur Grabowski
art@REDACTED
Thu Feb 28 15:38:31 CET 2002
Per Bergqvist <per@REDACTED> writes:
> [snip]
>
> > Unfortunately not all files support kqueues. Pipes, fifos, regular files
> > sockets and ttys, as well as processes and signals, are supported, but
> > more weird devices like usb stuff, audio, radio, etc. are not supported.
>
> Eventpoll in Linux has exactly the same problem. For this reason
> I added poll support to the /dev/epoll device itself.
> By doing that I can have a smaller result with "weird" files on
> which I actually call poll(). If readiness is indicated on the
> eventpoll file descriptor I do a EP_POLL to get the actual
> events.
>
> Would it be possible to multiplex with kqueue in a similiar way ?
Yes, you can select(2)/poll(2) on kqueue descriptors. You can also
register kqueue descriptors on another kqueue just to add to the
orthogonality.
//art
More information about the erlang-questions
mailing list