(self, pid: int)
| 5026 | return res |
| 5027 | |
| 5028 | def get_cmdline_of(self, pid: int) -> str: |
| 5029 | with open(f"/proc/{pid}/cmdline", "r") as f: |
| 5030 | return f.read().replace("\x00", "\x20").strip() |
| 5031 | |
| 5032 | def get_process_path_of(self, pid: int) -> str: |
| 5033 | return os.readlink(f"/proc/{pid}/exe") |
no test coverage detected