--- EV/EV.xs 2019/07/12 06:18:37 1.176 +++ EV/EV.xs 2020/01/22 02:10:13 1.177 @@ -997,7 +997,12 @@ RETVAL = w->events; if (items > 1) - RESET (io, w, (w, w->fd, new_events)); + { + int active = ev_is_active (w); + if (active) STOP (io, w); + ev_io_modify (w, new_events); + if (active) START (io, w); + } } OUTPUT: RETVAL