Browse Source

Move TODO about proc_exit from wasmtime

pull/502/head
Jakub Konka 6 years ago
committed by Dan Gohman
parent
commit
8a68375f89
  1. 2
      src/hostcalls.rs

2
src/hostcalls.rs

@ -26,6 +26,8 @@ use std::time::SystemTime;
use std::{cmp, slice};
pub fn proc_exit(rval: wasm32::__wasi_exitcode_t) -> () {
// TODO: Rather than call std::process::exit here, we should trigger a
// stack unwind similar to a trap.
std::process::exit(dec_exitcode(rval) as i32);
}

Loading…
Cancel
Save