Skip to content

Commit

Permalink
Revert "feat(shell): add exit_status to get the child's exit status."
Browse files Browse the repository at this point in the history
This reverts commit 126f5f4.
  • Loading branch information
xuchaoqian committed Dec 19, 2024
1 parent 126f5f4 commit bb8609f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugins/shell/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ impl CommandChild {
Ok(())
}

/// Return the child's exit status if it has already exited. If the child is
/// still running, return `Ok(None)`.
pub fn exit_status(&self) -> crate::Result<Option<ExitStatus>> {
let status = self.inner.try_wait()?;
Ok(status.map(|s| ExitStatus { code: s.code() }))
}

/// Returns the process pid.
pub fn pid(&self) -> u32 {
self.inner.id()
Expand Down

0 comments on commit bb8609f

Please sign in to comment.