From bb8609f87cc6d35be03d23d23a1c400a0ca2794e Mon Sep 17 00:00:00 2001 From: Chaoqian Xu Date: Thu, 19 Dec 2024 14:41:02 +0800 Subject: [PATCH] Revert "feat(shell): add exit_status to get the child's exit status." This reverts commit 126f5f4da74c476c9dfc59a4f45ded6c337cc635. --- plugins/shell/src/process/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/shell/src/process/mod.rs b/plugins/shell/src/process/mod.rs index 0cca55c0..ac801834 100644 --- a/plugins/shell/src/process/mod.rs +++ b/plugins/shell/src/process/mod.rs @@ -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> { - 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()