--- libev/ev.c 2007/11/10 04:40:27 1.88 +++ libev/ev.c 2007/11/10 19:48:44 1.89 @@ -1294,6 +1294,8 @@ if (!ev_is_active (w)) return; + assert (("ev_io_start called with illegal fd (must stay constant after start!)", w->fd >= 0 && w->fd < anfdmax)); + wlist_del ((WL *)&anfds[w->fd].head, (WL)w); ev_stop (EV_A_ (W)w);