mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
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
This commit is contained in:
parent
9d9b424390
commit
c483b4ceca
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue