fix(runtime): fix typo in waidpid
Reviewed-by: ElKowar
This commit is contained in:
parent
4e1a835ddc
commit
6cd36a5ec5
2 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ pub enum RuntimeError {
|
|||
ForkFailed(#[source] Errno),
|
||||
|
||||
#[error("waitpid error: {0}")]
|
||||
WaidPid(nix::Error),
|
||||
WaitPid(nix::Error),
|
||||
|
||||
#[error("I/O error: {0}")]
|
||||
IOError(#[source] io::Error),
|
||||
|
@ -120,7 +120,7 @@ impl Shell {
|
|||
None => OsString::new(),
|
||||
};
|
||||
|
||||
wait::waitpid(child, Some(WaitPidFlag::empty())).map_err(RuntimeError::WaidPid)?;
|
||||
wait::waitpid(child, Some(WaitPidFlag::empty())).map_err(RuntimeError::WaitPid)?;
|
||||
|
||||
Ok(bytes)
|
||||
}
|
||||
|
|
|
@ -225,7 +225,7 @@ fn wait_pgid(pgid: Pid) -> Result<Status, RuntimeError> {
|
|||
Ok(_) => (),
|
||||
Err(err) => match err {
|
||||
Errno::ECHILD => break Ok(last_status), // no more children
|
||||
_ => break Err(RuntimeError::WaidPid(err)),
|
||||
_ => break Err(RuntimeError::WaitPid(err)),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue