Kill the process.
(pid: int)
| 36 | |
| 37 | |
| 38 | def kill(pid: int) -> None: |
| 39 | """Kill the process.""" |
| 40 | if sys.platform == "win32": |
| 41 | subprocess.check_output(f"taskkill /pid {pid} /f /t") |
| 42 | else: |
| 43 | os.kill(pid, signal.SIGKILL) |
no outgoing calls
no test coverage detected
searching dependent graphs…