

def is_running(pid):
    'Returns True if process with PID `pid` is running. Current user must\n    have permission to access process information.'
    try:
        os.kill(pid, 0)
    except OSError as exc:
        if (exc.errno == errno.ESRCH):
            return False
        raise
    return True

dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/utils/system.py is_running/original