pub fn proc_exit2<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
code: ExitCode,
) -> Result<(), WasiError>Expand description
ยงproc_exit2()
Similar to proc_exit()
If used in a proc_fork_env (vfork) context it will exit the
child, switch the process back into the parent process and
return. If used for vforking, restoring the control to the
place where the vfork happened is the responsibility of the
caller.