Hi,
I've released the first draft of my EPoll package[1][2]. While everything works for SBCL, `EPFD-WAIT' returns weird file descriptors (e.g. -65536) on CCL. Consider example below.
CL-USER> (loop for pkg in '(cffi alexandria usocket epoll) do (asdf:oos 'asdf:load-op pkg)) ... NIL
CL-USER> (usocket:with-socket-listener (server-socket "0.0.0.0" 4040 :reuse-address t) (alexandria:when-let (client-socket (usocket:socket-accept server-socket)) (unwind-protect (progn (epoll:with-epfd (epfd) (epoll:epfd-control epfd :add (epoll:socket-fd (usocket:socket client-socket)) :in :pri :err) (epoll:epfd-wait epfd 5000))) (usocket:socket-close client-socket)))) ((-65536 :IN))
Any ideas about what might I be missing?
Regards.
On Sun, Sep 13, 2009 at 6:50 PM, Volkan YAZICI yazicivo@ttmail.com wrote:
Any ideas about what might I be missing?
It's not immediately clear what's going on without a runnable example. Have you tried running/reading iolib[1]; it supports epoll and might give you some insights.
[1] http://common-lisp.net/project/iolib/