From bd33aa313e03a9b2f07178d5a22d9891598c309f Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Mon, 30 Nov 2015 00:53:46 +0200
Subject: [PATCH] unix/moduselect: Support growing of poll array.

---
 unix/moduselect.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/unix/moduselect.c b/unix/moduselect.c
index 0d06cc530..9abcc19dd 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;
         }
     }
 
-- 
GitLab