summaryrefslogtreecommitdiffstatshomepage
path: root/unix/moduselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/moduselect.c')
-rw-r--r--unix/moduselect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/moduselect.c b/unix/moduselect.c
index 0d06cc5309..9abcc19dd7 100644
--- a/unix/moduselect.c
+++ b/unix/moduselect.c
@@ -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;
}
}