Skip to content

Fix incorrect continue condition in PreopeonList#5829

Merged
andrewrk merged 1 commit intoziglang:masterfrom
kubkon:wasi-preopens-fix
Jul 12, 2020
Merged

Fix incorrect continue condition in PreopeonList#5829
andrewrk merged 1 commit intoziglang:masterfrom
kubkon:wasi-preopens-fix

Conversation

@kubkon
Copy link
Member

@kubkon kubkon commented Jul 9, 2020

Also, check for overflow on incremented file descriptors. Previously,
we'd trigger a panic if we exceeded the fd_t resolution. Now, instead,
we throw an error.Overflow to signal that there can be no more
file descriptors available from the runtime. This way we give the user
the ability to still be able to check if their desired preopen exists
in the list or not.

This patch should fix the timeout observed in #5701 on Linux.

Also, check for overflow on incremented file descriptors. Previously,
we'd trigger a panic if we exceeded the `fd_t` resolution. Now, instead,
we throw an `error.Overflow` to signal that there can be no more
file descriptors available from the runtime. This way we give the user
the ability to still be able to check if their desired preopen exists
in the list or not.
@andrewrk andrewrk merged commit eea7271 into ziglang:master Jul 12, 2020
@kubkon kubkon deleted the wasi-preopens-fix branch December 9, 2020 20:51
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