Skip to content

Commit 548a72b

Browse files
GSVarshapvital
authored andcommitted
fix: command used to run the python process
- adapt to legacy systems like ibm i Signed-off-by: Varsha GS <varsha.gs@ibm.com>
1 parent 9183bcb commit 548a72b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instana/fsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def announce_sensor(self, e: Any) -> bool:
119119
# rely on ps rather than adding a dependency on something like
120120
# psutil which requires dev packages, gcc etc...
121121
proc = subprocess.Popen(
122-
["ps", "-p", str(pid), "-o", "command"], stdout=subprocess.PIPE
122+
["ps", "-p", str(pid), "-o", "args"], stdout=subprocess.PIPE
123123
)
124124
(out, _) = proc.communicate()
125125
parts = out.split(b"\n")

0 commit comments

Comments
 (0)