Accidentally converted to str. now convert to int.

This commit is contained in:
Sebastian Lenzlinger 2023-06-07 18:45:04 +02:00
parent 05d600da71
commit c58196dad8

View File

@ -119,7 +119,7 @@ def kill_process(pid):
pid (str): Process ID of process to kill pid (str): Process ID of process to kill
""" """
try: try:
os.kill(str(pid), signal.SIGKILL) # pid apparently arrives as string os.kill(int(pid), signal.SIGKILL) # pid apparently arrives as string
except ProcessLookupError: except ProcessLookupError:
print("[-] Process {} not found.".format(pid)) print("[-] Process {} not found.".format(pid))