diff --git a/crates/oyster_runtime/src/lib.rs b/crates/oyster_runtime/src/lib.rs index 2365486..e50c2ee 100644 --- a/crates/oyster_runtime/src/lib.rs +++ b/crates/oyster_runtime/src/lib.rs @@ -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) } diff --git a/crates/oyster_runtime/src/pipeline.rs b/crates/oyster_runtime/src/pipeline.rs index 30bde57..ead050a 100644 --- a/crates/oyster_runtime/src/pipeline.rs +++ b/crates/oyster_runtime/src/pipeline.rs @@ -225,7 +225,7 @@ fn wait_pgid(pgid: Pid) -> Result { Ok(_) => (), Err(err) => match err { Errno::ECHILD => break Ok(last_status), // no more children - _ => break Err(RuntimeError::WaidPid(err)), + _ => break Err(RuntimeError::WaitPid(err)), }, } }