aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-symfony-process/src/process.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-symfony-process/src/process.rs')
-rw-r--r--crates/shirabe-symfony-process/src/process.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/crates/shirabe-symfony-process/src/process.rs b/crates/shirabe-symfony-process/src/process.rs
index b7459d41..87c6c68d 100644
--- a/crates/shirabe-symfony-process/src/process.rs
+++ b/crates/shirabe-symfony-process/src/process.rs
@@ -62,7 +62,6 @@ pub struct Process {
options: IndexMap<String, PhpMixed>,
process_pipes: Option<Box<dyn PipesInterface>>,
latest_signal: Option<i64>,
- cached_exit_code: Option<i64>,
/// Test-only mock state. `None` in production; set via [`Process::__mock`] in tests.
mock: Option<ProcessMock>,
}
@@ -189,7 +188,6 @@ impl Process {
options,
process_pipes: None,
latest_signal: None,
- cached_exit_code: None,
mock: None,
}
}
@@ -745,29 +743,6 @@ impl Process {
.map(shirabe_php_shim::php_truthy)
.unwrap_or(false);
- // In PHP < 8.3, "proc_get_status" only returns the correct exit status on the first call.
- if shirabe_php_shim::PHP_VERSION_ID < 80300 {
- let exitcode = self
- .process_information
- .as_ref()
- .unwrap()
- .get("exitcode")
- .and_then(|v| v.as_int());
- if self.cached_exit_code.is_none() && !running && exitcode != Some(-1) {
- self.cached_exit_code = exitcode;
- }
-
- if let Some(cached) = self.cached_exit_code
- && !running
- && exitcode == Some(-1)
- {
- self.process_information
- .as_mut()
- .unwrap()
- .insert("exitcode".to_string(), PhpMixed::Int(cached));
- }
- }
-
self.read_pipes(running && blocking, !cfg!(windows) || !running);
if !running {