def _chroot_pids(chroot):
    pids = []
    for root in glob.glob('/proc/[0-9]*/root'):
        try:
            link = os.path.realpath(root)
            if link.startswith(chroot):
                pids.append(int(os.path.basename(
                    os.path.dirname(root)
                )))
        except __HOLE__:
            pass
    return pids
dataset/ETHPy150Open saltstack/salt/salt/modules/cmdmod.py/_chroot_pids