poll_modify (EV_P_ int fd, int oev, int nev)
{
int idx;
+
+ if (oev == nev)
+ return;
+
array_needsize (pollidxs, pollidxmax, fd + 1, pollidx_init);
idx = pollidxs [fd];
method_poll = poll_poll;
pollidxs = 0; pollidxmax = 0;
- polls = 0; pollsmax = 0; pollscnt = 0;
+ polls = 0; pollmax = 0; pollcnt = 0;
return EVMETHOD_POLL;
}