From fdb93e9e652a349c2beebee9e3da96c0736a9291 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Wed, 14 Oct 2026 18:59:27 -0400 Subject: [PATCH] [Fix] (CI): treat a process that exits mid-read of its /proc stat as gone in the TCP server fixture --- scripts/ci/tcp_server_fixture.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ci/tcp_server_fixture.py b/scripts/ci/tcp_server_fixture.py index 0361a434..748013b3 100644 --- a/scripts/ci/tcp_server_fixture.py +++ b/scripts/ci/tcp_server_fixture.py @@ -16,7 +16,8 @@ from urllib.parse import urlsplit def process_start(pid): try: return Path(f'/proc/{pid}/stat').read_text().rsplit(')', 1)[1].split()[19] - except FileNotFoundError: + except (FileNotFoundError, ProcessLookupError): + # ESRCH: the process exited between opening its stat file and reading it. return None