Accidentally converted to str. now convert to int.
This commit is contained in:
parent
05d600da71
commit
c58196dad8
@ -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))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user