def pids():
    return [int(x) for x in os.listdir(b(get_procfs_path())) if x.isdigit()]
Returns a list of PIDs currently running on the system.
dataset/ETHPy150Open giampaolo/psutil/psutil/_pssunos.py/pids