Skip to content

Implementing correct proc_exit in C host is impossible #11061

Open
@squrky

Description

@squrky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasmtime:c-apiIssues pertaining to the C API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions