

def pid_tree(pid):
    'Return a list of all descendant PIDs for the given PID.'
    children = child_pids(pid)
    return (set((pid for child in children for pid in pid_tree(child))) | pid)

dataset/ETHPy150Open Yelp/dumb-init/tests/lib/testing.py pid_tree/VarMisuse@39/67 `children`->`pid`