This commit is contained in:
Sebastian Lenzlinger 2023-06-07 18:28:23 +02:00
parent cef0f5c7dc
commit 6e9f236c08

View File

@ -116,10 +116,10 @@ def kill_process(pid):
Kill single process.
Args:
pid (int): Process ID of process to kill
pid (): Process ID of process to kill # TODO: check if pid is int
"""
try:
os.kill(int(pid), signal.SIGKILL)
os.kill(pid, signal.SIGKILL)
except ProcessLookupError:
print("[-] Process {} not found.".format(pid))