path: pwntools_4.15.0-1/pwnlib/util/proc.py
def pidof(target):
    """pidof(target) -> int list
    Get PID(s) of `target`.  The returned PID(s) depends on the type of `target`:
