Document where function came from

This commit is contained in:
Jake Howard 2018-12-12 18:46:41 +00:00
parent dd656e17a7
commit 3212a3326d
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -4,6 +4,7 @@ import psutil
def terminate_processes(procs: List[psutil.Process], timeout=3): def terminate_processes(procs: List[psutil.Process], timeout=3):
# https://psutil.readthedocs.io/en/latest/#terminate-my-children
for p in procs: for p in procs:
p.terminate() p.terminate()
gone, alive = psutil.wait_procs(procs, timeout=timeout) gone, alive = psutil.wait_procs(procs, timeout=timeout)