Skip to content

Report open character device ready when macOS poll(2) flags it POLLNVAL - #543

Open
MaxDesiatov wants to merge 1 commit into
mainfrom
maxd/wasi-poll-character-device
Open

MaxDesiatov wants to merge 1 commit into
mainfrom
maxd/wasi-poll-character-device

Conversation

@MaxDesiatov

Copy link
Copy Markdown
Member

On macOS, poll(2) reports POLLNVAL for an open character device such as /dev/null. poll_oneoff turned that into EBADF, which failed poll_oneoff_stdio when the test process had stdin on /dev/null. This is now reported ready on Darwin, with tests for /dev/null and an unopened descriptor.

…POLLNVAL

On macOS, `poll(2)` reports POLLNVAL for an open character device such as `/dev/null`. `poll_oneoff` turned that into EBADF, which failed `poll_oneoff_stdio` when the test process had stdin on `/dev/null`. This is now reported ready on Darwin, with tests for `/dev/null` and an unopened descriptor.
@MaxDesiatov
MaxDesiatov marked this pull request as ready for review November 29, 2026 20:27

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant