mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
Implement capture_stdout and inherit_stdout correctly
This commit is contained in:
@@ -269,11 +269,11 @@ fn prepare_webc_env(
|
||||
let filesystem = Box::new(StaticFileSystem::init(slice, &package_name)?);
|
||||
let mut wasi_env = config.state_builder;
|
||||
|
||||
if config.inherit_stdout {
|
||||
if !config.inherit_stdout {
|
||||
wasi_env.stdout(Box::new(Pipe::new()));
|
||||
}
|
||||
|
||||
if config.inherit_stderr {
|
||||
if !config.inherit_stderr {
|
||||
wasi_env.stderr(Box::new(Pipe::new()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user