pub fn await_child<S>(program: S, child: Child) -> Result<Option<ChildStdout>>where S: AsRef<OsStr>,
Wait for a child process to finish and map failures to an appropriate error.