Avoid epoll_ctl(..., EPOLL_CTL_DEL, ...) for closed fds.
[srvx.git] / src / ioset-select.c
index 64afa0fd37dc89a7afb3094d2a3539da4a3925d3..8ece1286318a101898a38eb257544880c6291ff2 100644 (file)
@@ -57,10 +57,11 @@ ioset_select_add(struct io_fd *fd)
 }
 
 static void
-ioset_select_remove(struct io_fd *fd)
+ioset_select_remove(struct io_fd *fd, int closed)
 {
     FD_CLR(fd->fd, &read_fds);
     FD_CLR(fd->fd, &write_fds);
+    (void)closed;
 }
 
 static void