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
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ STATIC mp_obj_t poll_register(uint n_args, const mp_obj_t *args) {
} }
} }
if (entries->fd != -1) { 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;
} }
} }