Skip to content

Commit bd33aa3

Browse files
committed
unix/moduselect: Support growing of poll array.
1 parent 5d81641 commit bd33aa3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

unix/moduselect.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ STATIC mp_obj_t poll_register(uint n_args, const mp_obj_t *args) {
6565
}
6666
}
6767
if (entries->fd != -1) {
68-
assert(0);
68+
i = self->len++;
69+
self->entries = m_renew(struct pollfd, self->entries, self->alloc, self->alloc + 4);
70+
self->alloc += 4;
6971
}
7072
}
7173

0 commit comments

Comments
 (0)