Commit bd33aa31 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/moduselect: Support growing of poll array.

parent 5d816416
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment