From d8a5a24578d50fd0a2fed623cb020dbf3e089541 Mon Sep 17 00:00:00 2001 From: Varsha GS Date: Thu, 9 Oct 2025 10:08:12 +0530 Subject: [PATCH] fix: command used to run the python process - adapt to legacy systems like ibm i Signed-off-by: Varsha GS --- src/instana/fsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instana/fsm.py b/src/instana/fsm.py index 7355a0ab..f9473907 100644 --- a/src/instana/fsm.py +++ b/src/instana/fsm.py @@ -119,7 +119,7 @@ def announce_sensor(self, e: Any) -> bool: # rely on ps rather than adding a dependency on something like # psutil which requires dev packages, gcc etc... proc = subprocess.Popen( - ["ps", "-p", str(pid), "-o", "command"], stdout=subprocess.PIPE + ["ps", "-p", str(pid), "-o", "args"], stdout=subprocess.PIPE ) (out, _) = proc.communicate() parts = out.split(b"\n")