def kill_process(proc):
    p1_group = psutil.Process(proc.pid)

    child_pids = p1_group.children(recursive=True)

    for child_pid in child_pids:
        os.kill(child_pid.pid, signal.SIGKILL)
Kill the process `proc` created with `subprocess`.
dataset/ETHPy150Open edx/bok-choy/bok_choy/proxy.py/kill_process