bytecodealliance / bytecodealliance/wasmtime

Implementing correct proc_exit in C host is impossible

Open
#11,061 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.