fix(package): [system] keep the whole command name in GetProcessInfo (#426)

* fix(package): [system] keep the whole command name in GetProcessInfo

* test(package): [system] cover a command name with spaces
This commit is contained in:
Lee Sang Gyu authored and GitHub committed 2026-11-09 12:30:04 +08:00
1 parent 1715d14cc8
commit b4302b2d15
2 files changed
+20 -1

No files matched your search

+1 -1
View File
@@ -252,7 +252,7 @@ func parseProcessInfo(output []byte, pid int) (*ProcessInfo, error) {
Memory: fields[2],
State: fields[3],
User: fields[4],
Cmd: fields[5],
Cmd: strings.Join(fields[5:], " "),
}
}