Pipe error to stderr

This commit is contained in:
Edwin Cheng
2020-03-31 22:02:25 +08:00
parent 02b849a2a0
commit 6ed030d4b6
+5 -2
View File
@@ -55,8 +55,11 @@ fn run(process_path: &Path) -> Result<Process, io::Error> {
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(())
}