Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix poll_oneoff's handling of non-regular files. #6258

Conversation

sunfishcode
Copy link
Member

poll_oneoff uses system_interface::ReadReady to compute how many bytes are ready to be read, which is part of the Preview1 poll_oneoff API. This updates to system-interface 0.25.7 which has a fix to handle special files such as /dev/urandom and /dev/null properly.

Fixes #6239.

`poll_oneoff` uses `system_interface::ReadReady` to compute how many
bytes are ready to be read, which is part of the Preview1 `poll_oneoff`
API. This updates to system-interface 0.25.7 which has a fix to handle
special files such as /dev/urandom and /dev/null properly.

Fixes bytecodealliance#6239.
@sunfishcode sunfishcode requested a review from a team as a code owner April 20, 2023 23:37
@sunfishcode sunfishcode requested review from abrown and removed request for a team April 20, 2023 23:37
@sunfishcode sunfishcode added this pull request to the merge queue Apr 21, 2023
Merged via the queue into bytecodealliance:main with commit 1a077df Apr 21, 2023
@sunfishcode sunfishcode deleted the sunfishcode/update-system-interface branch April 21, 2023 01:13
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Apr 28, 2023
…6258)

`poll_oneoff` uses `system_interface::ReadReady` to compute how many
bytes are ready to be read, which is part of the Preview1 `poll_oneoff`
API. This updates to system-interface 0.25.7 which has a fix to handle
special files such as /dev/urandom and /dev/null properly.

Fixes bytecodealliance#6239.
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.

wasmtime fails to poll host /dev/random
2 participants