def _process_alive(pid):
    if exists("/proc"):
        return exists("/proc/%d" % pid)
    else:
        try:
            os.kill(int(pid), 0)
            return True
        except __HOLE__, err:
            return err.errno == errno.EPERM
dataset/ETHPy150Open tmm1/graphite/carbon/lib/carbon/conf.py/_process_alive