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_modify = poll_modify;
method_poll = poll_poll;
+ pollidxs = 0; pollidxmax = 0;
+ polls = 0; pollmax = 0; pollcnt = 0;
+
return EVMETHOD_POLL;
}
+
+static void
+poll_destroy (EV_P)
+{
+ free (pollidxs);
+ free (polls);
+}