You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But output blocked until the command finished execution successfully.
Parent command executed in a terminal.
Consistently, I don't see Stdio::inherit() being used the code of rust_cmd_lib.
The alternative to use the standard API worked for me:
use std::process::{Stdio, Command};
let mut cmd = Command::new("docker");
cmd.stdout(Stdio::inherit());
cmd.stderr(Stdio::inherit());
cmd.stdin(Stdio::inherit());
cmd.arg("build");
cmd.arg("-f");
cmd.arg(tmp_docker_file);
cmd.arg("-t");
cmd.arg(tag);
cmd.arg(tmp_path_sub);
let mut child = cmd.spawn()?;
child.wait()?;
The text was updated successfully, but these errors were encountered:
da-x
changed the title
Doesn't appear as though file descriptor are inherited
Doesn't appear as though file descriptors are inherited
Jun 11, 2021
da-x
changed the title
Doesn't appear as though file descriptors are inherited
spawn: doesn't appear as though file descriptors are inherited
Jun 11, 2021
I tried a long running command, e.g:
But output blocked until the command finished execution successfully.
Parent command executed in a terminal.
Consistently, I don't see
Stdio::inherit()
being used the code ofrust_cmd_lib
.The alternative to use the standard API worked for me:
The text was updated successfully, but these errors were encountered: