phoenix-rtos/phoenix-rtos-project

libphoenix/select: timeout is handled incorrectly

Open

#1,390 opened on Aug 29, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C (48 forks)auto 404
good first issue

Repository metrics

Stars
 (62 stars)
PR merge metrics
 (PR metrics pending)

Description

When calling select with nfds = 0 timeval is interpreted incorrectly: tv_sec of timeout in select are actually milliseconds due to bad conversion ratio (1e3 instead of 1e6). tv_usec doesn't work correctly either.

This causes some micropython tests to fail

Contributor guide