(self, pid: Optional[int], timeout_seconds: float = 5.0)
| 943 | return False |
| 944 | |
| 945 | async def _wait_pid_exit(self, pid: Optional[int], timeout_seconds: float = 5.0) -> bool: |
| 946 | if not pid: |
| 947 | return True |
| 948 | deadline = time.time() + timeout_seconds |
| 949 | while time.time() < deadline: |
| 950 | if not self._is_pid_running(pid): |
| 951 | return True |
| 952 | await asyncio.sleep(0.2) |
| 953 | return not self._is_pid_running(pid) |
| 954 | |
| 955 | def _kill_pid(self, pid: Optional[int], reason: str): |
| 956 | if not pid: |
no test coverage detected