Skip to content
  • Kristian Høgsberg's avatar
    event-loop: Delete fd from epoll when removing event source · c49f632d
    Kristian Høgsberg authored
    Closing an fd will remove it from the epoll set only if it hasn't been
    dup'ed.  In other words, the fd is only removed from epoll when all file
    descriptors referring to the open file has been close.  We now dup
    fd for fd sources, so we need to use EPOLL_CTL_DEL directly now.
    c49f632d