summaryrefslogtreecommitdiff
path: root/src/app/runtime.rs
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-08-18 00:11:20 +0300
committerGitHub <noreply@github.com>2026-08-18 00:11:20 +0300
commit76211757ecce73cba981bdf6704954b25a100a8c (patch)
tree8686202ba5d6bb32d13e9d911b3aa4236bb30a6c /src/app/runtime.rs
parent19022d03c902de586009b1d156bc20b01ce48135 (diff)
fix: reap ctrl-click url openers (#2906)
* fix: reap ctrl-click url openers refs #2903 * fix: scope linux opener test import refs #2903 * test: isolate url opener regression refs #2903 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/app/runtime.rs')
-rw-r--r--src/app/runtime.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/app/runtime.rs b/src/app/runtime.rs
index 9551055e..d7023727 100644
--- a/src/app/runtime.rs
+++ b/src/app/runtime.rs
@@ -9,7 +9,7 @@ use super::{
background_update_check_enabled, App, AUTO_UPDATE_CHECK_INTERVAL, MIN_RENDER_INTERVAL,
RESIZE_POLL_INTERVAL, SELECTION_AUTOSCROLL_INTERVAL,
};
-fn retain_custom_command_after_wait(
+fn retain_detached_process_after_wait(
pid: u32,
result: std::io::Result<Option<std::process::ExitStatus>>,
) -> bool {
@@ -18,16 +18,16 @@ fn retain_custom_command_after_wait(
Ok(Some(_)) => false,
Err(err) if err.kind() == std::io::ErrorKind::Interrupted => true,
Err(err) => {
- tracing::warn!(pid, err = %err, "failed to reap detached custom command");
+ tracing::warn!(pid, err = %err, "failed to reap detached process");
false
}
}
}
impl App {
- pub(crate) fn reap_finished_custom_commands(&mut self) {
- self.detached_custom_command_children
- .retain_mut(|child| retain_custom_command_after_wait(child.id(), child.try_wait()));
+ pub(crate) fn reap_finished_detached_processes(&mut self) {
+ self.detached_process_children
+ .retain_mut(|child| retain_detached_process_after_wait(child.id(), child.try_wait()));
}
pub(crate) fn shutdown_terminal_runtime(&mut self, terminal_id: crate::terminal::TerminalId) {
@@ -658,10 +658,10 @@ mod tests {
use crate::workspace::Workspace;
#[test]
- fn interrupted_custom_command_wait_keeps_child_for_retry() {
+ fn interrupted_detached_process_wait_keeps_child_for_retry() {
let interrupted = std::io::Error::new(std::io::ErrorKind::Interrupted, "test interrupt");
- assert!(retain_custom_command_after_wait(42, Err(interrupted)));
+ assert!(retain_detached_process_after_wait(42, Err(interrupted)));
}
fn test_app_with_pane() -> (super::super::App, crate::layout::PaneId) {