You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugins/linux-v4l2/v4l2-udev.c.h:113-126: the udev monitor thread calls poll(fds, 2, 1000) and continues whenever POLLIN is not set. If the netlink fd ever reports a persistent POLLERR/POLLHUP/POLLNVAL, poll returns immediately every time and the thread spins with no wait. Normal operation is fine.
Fix: on POLLERR|POLLHUP|POLLNVAL, log once and either reopen the monitor with a backoff or exit the thread.
Test: feed the loop a closed or errored fd (a socketpair with the peer closed) and check that it exits or backs off instead of looping.
Claiming. Plan: on POLLERR|POLLHUP|POLLNVAL the udev thread logs once and exits (or reopens with a backoff if that's cheap) instead of looping; RED is a cmocka test driving the loop with a socket whose peer is closed, asserting it stops instead of spinning.
Activity
zackees commentedon Oct 17, 2026
Claiming. Plan: on
POLLERR|POLLHUP|POLLNVALthe udev thread logs once and exits (or reopens with a backoff if that's cheap) instead of looping; RED is a cmocka test driving the loop with a socket whose peer is closed, asserting it stops instead of spinning.linux-v4l2: udev thread stops instead of spinning on a poll error (ob…