unix/moduselect: Support growing of poll array.

This commit is contained in:
Paul Sokolovsky 2015-11-30 00:53:46 +02:00
parent 5d8164167e
commit bd33aa313e

View file

@ -65,7 +65,9 @@ STATIC mp_obj_t poll_register(uint n_args, const mp_obj_t *args) {
}
}
if (entries->fd != -1) {
assert(0);
i = self->len++;
self->entries = m_renew(struct pollfd, self->entries, self->alloc, self->alloc + 4);
self->alloc += 4;
}
}