(&mut self)
| 507 | } |
| 508 | |
| 509 | fn spawn(&mut self) -> io::Result<process::Child> { |
| 510 | // stdout/stderr should only be piped for `output` according to `process::Command::new`. |
| 511 | self.cmd.stdin(process::Stdio::piped()); |
| 512 | self.cmd.stdout(process::Stdio::piped()); |
| 513 | self.cmd.stderr(process::Stdio::piped()); |
| 514 | |
| 515 | self.cmd.spawn() |
| 516 | } |
| 517 | |
| 518 | /// Returns the path to the program that was given to [`Command::new`]. |
| 519 | /// |