[slime-devel] Slime, SBCL and add-fd-handler

Dmitri Hrapof yavannadil at yahoo.com
Thu Jan 5 16:03:17 UTC 2006

I'm using add-fd-handler in my server, 
and everything works in raw terminal.
However, when I start server from Slime, 
I have to call (SB-IMPL::SERVE-EVENT) manually to
get my callbacks called and client's request
Is this expected behaviour?
What is idiomatic solution? It seems to me
I've done everything as Araneida does:

(defun make-repl-friendly (s)
 (when *repl-friendly*
   "adds callbacks for socket"
    (sb-bsd-sockets:socket-file-descriptor s)
     #'(lambda (fd)
        (declare (ignore fd))
        (loop while (op:work_pending *the-orb*)
           do (op:perform_work *the-orb*)))))))

Where should I dig?

Thanks, Dmitri

More information about the slime-devel mailing list