sionescu / iolib

Common Lisp I/O library
http://common-lisp.net/project/iolib/
MIT License
141 stars 31 forks source link

remove-fd-handlers errors when there are no fd handlers #73

Closed dlowe-net closed 2 years ago

dlowe-net commented 2 years ago

I have code that monitors sockets using fd handlers. However, I currently have to check whether or not the fd handler exists (using an unexported function! See #72 ) or risk having a signal:

(when (iolib.multiplex::fd-monitored-p *event-base* (socket-os-fd s) :read)
    (remove-fd-handlers *event-base* (socket-os-fd s) :read t))

It'd be really nice if I could just call remove-fd-handlers blindly.

sionescu commented 2 years ago

Your wish is my command.

dlowe-net commented 2 years ago

Thanks a bunch!