Pipe error to stderr

This commit is contained in:
Edwin Cheng 2020-03-31 22:02:25 +08:00
parent 02b849a2a0
commit 6ed030d4b6

View file

@ -55,8 +55,11 @@ impl Process {
fn restart(&mut self) -> Result<(), io::Error> {
let _ = self.child.kill();
self.child =
Command::new(self.path.clone()).stdin(Stdio::piped()).stdout(Stdio::piped()).spawn()?;
self.child = Command::new(self.path.clone())
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::null())
.spawn()?;
Ok(())
}