Skip to content
Snippets Groups Projects
Commit bd33aa31 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/moduselect: Support growing of poll array.

parent 5d816416
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,9 @@ STATIC mp_obj_t poll_register(uint n_args, const mp_obj_t *args) { ...@@ -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;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment