On Mon Sep 20 07:07:24 2010, SQUEEK wrote:
Show quoted text> IO::Async doesn't support KQueue. Could this be supported please, even
> if it just does a wrap of IO::KQueue.
An excellent idea, and one hinted at by the TODO notes:
http://search.cpan.org/~pevans/IO-Async-0.29/lib/IO/Async.pm#TODO
I don't have easy access to a BSD box, short of going the usual qemu-
style approach, so I'm not sure how easily I could write such.
Having had a look over the IO::KQueue interface, and the kqueue(2)
manpage, I'd say it looks the same sort of idea as Linux's epoll; I'd
reckon therefore you could make some progress by taking
IO::Async::Loop::Epoll and adjusting it to use IO::KQueue instead. That
should give you a good start at least. Additionally it supports things
like signals, child processes, and filesystem watches; so those could be
added on additionally.
--
Paul Evans