From cca49ca2cf07119023d6dffb9fa6d21cbc8f0b67 Mon Sep 17 00:00:00 2001 From: Stefano Bertelli Date: Tue, 7 Apr 2026 17:48:16 -0500 Subject: [PATCH] fix: prevent collector subprocess from deadlocking on full pipe buffer Collector was spawned with stdout=PIPE but nobody read from the pipe. After days of accumulated log output the OS buffer filled, blocking the collector and freezing all metrics updates. --- wiregui/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiregui/main.py b/wiregui/main.py index 78b4315..235a0e4 100644 --- a/wiregui/main.py +++ b/wiregui/main.py @@ -92,8 +92,8 @@ def _start_collector() -> None: global _collector_proc _collector_proc = subprocess.Popen( [sys.executable, "-m", "wiregui.collector"], - stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, ) logger.info("Metrics collector started (pid={})", _collector_proc.pid)