From 61121aea6bee61a51d5a412f3276fd8835ef6c52 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 10 Aug 2026 22:30:49 +0100 Subject: [PATCH] Fix Unix readiness singleton probe --- epiphany-core/src/resident_readiness.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/epiphany-core/src/resident_readiness.rs b/epiphany-core/src/resident_readiness.rs index b22eb9e6..ab049a24 100644 --- a/epiphany-core/src/resident_readiness.rs +++ b/epiphany-core/src/resident_readiness.rs @@ -103,10 +103,8 @@ pub fn acquire_resident_process_singleton( #[cfg(unix)] { let path = resident_process_singleton_lock_path(role, &store)?; - if !path.exists() { - return Ok(false); - } let file = File::options() + .create(true) .read(true) .write(true) .open(path)?; @@ -165,8 +163,10 @@ fn resident_process_singleton_is_owned(role: &str, store: &Path) -> Result #[cfg(unix)] { let path = resident_process_singleton_lock_path(role, &store)?; + if !path.exists() { + return Ok(false); + } let file = File::options() - .create(true) .read(true) .write(true) .open(path)?;