Document where function came from
This commit is contained in:
parent
dd656e17a7
commit
3212a3326d
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue