bytecodealliance / bytecodealliance/wasmtime
Implementing correct proc_exit in C host is impossible
Open
wasmtime:c-api
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 121
Description
Hi,
It doesn't seem to be possible to implement a `proc_exit` host function in C that produces an exit code trap. Specifically, I believe we're missing a function that can produce a trap instance that (when transformed into an error) will satisfy the requirements of `wasmtime_error_exit_status`.
Please let me know if you need further clarification from me.
Best.
Contributor guide
Assessment
This issue has not been assessed yet.