From 90fd8231e2524ec5d2da3e9840426f3f32db204a Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 20:37:43 -0700 Subject: [PATCH] refactor(gateway): tighten marker self-match predicate --- gateway/status.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gateway/status.py b/gateway/status.py index 4f20ff8ef4..d45349e5b6 100644 --- a/gateway/status.py +++ b/gateway/status.py @@ -1254,9 +1254,7 @@ def _pid_marker_names_self(target_pid: int, target_start_time: Any) -> bool: if target_pid != os.getpid(): return False our_start_time = _get_process_start_time(target_pid) - if target_start_time is None or our_start_time is None: - return True - return target_start_time == our_start_time + return None in (target_start_time, our_start_time) or target_start_time == our_start_time def _consume_pid_marker_for_self(path: Path, *, ttl_s: int) -> bool: