def _running_children_with_cmdline(p):
    all_children = _direct_children_with_cmdline(p)
    workers = [(c, cmdline) for (c, cmdline) in all_children if (('semaphore_tracker' not in cmdline) and ('resource_tracker' not in cmdline) and ('multiprocessing.forkserver' not in cmdline))]
    forkservers = [c for (c, cmdline) in all_children if ('multiprocessing.forkserver' in cmdline)]
    for fs in forkservers:
        workers.extend(_direct_children_with_cmdline(fs))
    return workers
def _running_children_with_cmdline(p):
    all_children = _direct_children_with_cmdline(p)
    workers = [(c, cmdline) for (c, cmdline) in all_children if (('semaphore_tracker' not in cmdline) and ('resource_tracker' not in cmdline) and ('multiprocessing.forkserver' not in cmdline))]
    forkservers = [c for (c, cmdline) in all_children if ('multiprocessing.forkserver' in cmdline)]
    for fs in forkservers:
        workers.extend(_direct_children_with_cmdline(fs))
    return workers