std: Fix inheriting stdin on status()
This regression was accidentally introduced in #31618, and it's just flipping a boolean! Closes #32254
This commit is contained in:
parent
01118928fc
commit
4124466197
2 changed files with 42 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ impl Command {
|
|||
/// ```
|
||||
#[stable(feature = "process", since = "1.0.0")]
|
||||
pub fn status(&mut self) -> io::Result<ExitStatus> {
|
||||
self.inner.spawn(imp::Stdio::Inherit, false).map(Child::from_inner)
|
||||
self.inner.spawn(imp::Stdio::Inherit, true).map(Child::from_inner)
|
||||
.and_then(|mut p| p.wait())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue