Skip to content

Treat poll hangups as input errors#89

Open
JeffreyBenjaminBrown wants to merge 1 commit into
monome:mainfrom
JeffreyBenjaminBrown:fix-poll-disconnect-spin
Open

Treat poll hangups as input errors#89
JeffreyBenjaminBrown wants to merge 1 commit into
monome:mainfrom
JeffreyBenjaminBrown:fix-poll-disconnect-spin

Conversation

@JeffreyBenjaminBrown
Copy link
Copy Markdown

Treat POLLHUP and POLLNVAL like POLLERR in the Linux poll helper so callers can tear down disconnected devices instead of continuing the event loop. (Together with a parallel PR I am submitting now to serialosc, it reduced CPU usage from around 45% to negligible on my system, which can be inspected here: https://github.com/JeffreyBenjaminBrown/nixos-experiments/tree/xfce/config.)

@tehn
Copy link
Copy Markdown
Member

tehn commented May 15, 2026

Hi Jeff, thanks for investigating this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants