From 27e1dca1dc393fd0494f1b5ca98368f02dde59c4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 25 Aug 2026 04:41:12 +0200 Subject: [PATCH] Restore Linux missing-process classification --- epiphany-core/src/process_observation.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/epiphany-core/src/process_observation.rs b/epiphany-core/src/process_observation.rs index 9a3f04ea..7503f977 100644 --- a/epiphany-core/src/process_observation.rs +++ b/epiphany-core/src/process_observation.rs @@ -375,6 +375,14 @@ mod platform { Ok((starttime, state)) } + fn is_missing_error(error: &anyhow::Error) -> bool { + error.chain().any(|source| { + source + .downcast_ref::() + .is_some_and(|error| error.kind() == std::io::ErrorKind::NotFound) + }) + } + fn created_at_rfc3339(starttime: u64) -> Result { let ticks_per_second = unsafe { libc::sysconf(libc::_SC_CLK_TCK) }; if ticks_per_second <= 0 {