Redirect stderr to null

This commit is contained in:
Edwin Cheng
2020-03-31 22:18:24 +08:00
parent 6ed030d4b6
commit 3bc1670feb
+1
View File
@@ -48,6 +48,7 @@ fn run(process_path: &Path) -> Result<Process, io::Error> {
let child = Command::new(process_path.clone())
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::null())
.spawn()?;
Ok(Process { path: process_path.into(), child })