|
@ -1,4 +1,4 @@ |
|
|
use anyhow::{bail, Result}; |
|
|
use anyhow::Result; |
|
|
use wasmtime::*; |
|
|
use wasmtime::*; |
|
|
|
|
|
|
|
|
const WASM_PAGE_SIZE: usize = wasmtime_environ::WASM_PAGE_SIZE as usize; |
|
|
const WASM_PAGE_SIZE: usize = wasmtime_environ::WASM_PAGE_SIZE as usize; |
|
@ -536,10 +536,10 @@ fn custom_limiter_detect_os_oom_failure() -> Result<()> { |
|
|
if libc::WEXITSTATUS(wstatus) == 0 { |
|
|
if libc::WEXITSTATUS(wstatus) == 0 { |
|
|
Ok(()) |
|
|
Ok(()) |
|
|
} else { |
|
|
} else { |
|
|
bail!("child exited with failure"); |
|
|
anyhow::bail!("child exited with failure"); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
bail!("child didnt exit??") |
|
|
anyhow::bail!("child didnt exit??") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|