diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-30 00:53:46 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-30 00:54:14 +0200 |
commit | bd33aa313e03a9b2f07178d5a22d9891598c309f (patch) | |
tree | 1bd0aad11992540de8c8fc4d1b9d3fbdc9aeaf5a /unix/moduselect.c | |
parent | 5d8164167ee9911b25af5eb42e7d7190ba0c33f6 (diff) | |
download | micropython-bd33aa313e03a9b2f07178d5a22d9891598c309f.tar.gz micropython-bd33aa313e03a9b2f07178d5a22d9891598c309f.zip |
unix/moduselect: Support growing of poll array.
Diffstat (limited to 'unix/moduselect.c')
-rw-r--r-- | unix/moduselect.c | 4 |
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; } } |