From 6cd36a5ec504ab2fcce18c670c14410aa3c288d5 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Mon, 24 Oct 2022 19:45:25 +0000 Subject: [PATCH] fix(runtime): fix typo in waidpid Reviewed-by: ElKowar --- crates/oyster_runtime/src/lib.rs | 4 ++-- crates/oyster_runtime/src/pipeline.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)), }, } }