diff options
Diffstat (limited to 'ports/unix/moduselect.c')
| -rw-r--r-- | ports/unix/moduselect.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ports/unix/moduselect.c b/ports/unix/moduselect.c index bebffc5da..6a0ee79aa 100644 --- a/ports/unix/moduselect.c +++ b/ports/unix/moduselect.c @@ -188,10 +188,8 @@ STATIC int poll_poll_internal(size_t n_args, const mp_obj_t *args) { self->flags = flags; - MP_THREAD_GIL_EXIT(); - int n_ready = poll(self->entries, self->len, timeout); - MP_THREAD_GIL_ENTER(); - RAISE_ERRNO(n_ready, errno); + int n_ready; + MP_HAL_RETRY_SYSCALL(n_ready, poll(self->entries, self->len, timeout), mp_raise_OSError(err)); return n_ready; } |
