def get_pid_list():
    pids = [int(x) for x in os.listdir('/proc') if x.isdigit()]
    return pids
Returns a list of PIDs currently running on the system.
dataset/ETHPy150Open packages/psutil/psutil/_pslinux.py/get_pid_list