Adjust stdin handling in target command execution to inherit from the parent process
This commit is contained in:
@@ -2105,6 +2105,10 @@ fn run_target_command(
|
||||
cmd.env(k, v);
|
||||
}
|
||||
|
||||
// `Command::output()` defaults stdin to `/dev/null`. Minimal chroots may
|
||||
// not have device nodes yet, so inherit stdin while still capturing output.
|
||||
cmd.stdin(Stdio::inherit());
|
||||
|
||||
let output = cmd.output().map_err(|err| {
|
||||
command_spawn_error(root, &resolved_program, &resolved_program_display, err)
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user