From c483b4cecaa9d80688184f169564563169dc774a Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 15 Apr 2026 17:07:22 -0700 Subject: [PATCH] fix: use POSIX ps -A instead of BSD -ax for Docker compat (#9723) (#10569) procps-ng 4.0.4 in Docker rejects BSD-style 'ps eww -ax' with a 'must set personality' error, causing find_gateway_pids() to return empty and falsely report the gateway as not running. Fix: replace 'ps eww -ax' with 'ps -A eww'. -A is the POSIX equivalent of BSD -ax (select all processes), and the eww modifiers (show environment + wide output) still work as BSD flags alongside the POSIX -A flag. This preserves the HERMES_HOME= environment visibility needed for profile-aware PID matching. Closes #9723 --- hermes_cli/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_cli/gateway.py b/hermes_cli/gateway.py index 6d46bdde66..d010a601d5 100644 --- a/hermes_cli/gateway.py +++ b/hermes_cli/gateway.py @@ -222,7 +222,7 @@ def find_gateway_pids(exclude_pids: set | None = None, all_profiles: bool = Fals current_cmd = "" else: result = subprocess.run( - ["ps", "eww", "-ax", "-o", "pid=,command="], + ["ps", "-A", "eww", "-o", "pid=,command="], capture_output=True, text=True, timeout=10,