(path: Path)
| 76 | |
| 77 | |
| 78 | def read_argv(path: Path) -> list[str] | None: |
| 79 | try: |
| 80 | raw = path.read_bytes() |
| 81 | except Exception: |
| 82 | return None |
| 83 | if not raw: |
| 84 | return None |
| 85 | return [part.decode("utf-8", "ignore") for part in raw.split(b"\x00") if part] |
| 86 | |
| 87 | |
| 88 | def parse_socket_path(cmd: str) -> str | None: |
no test coverage detected