def is_running(self):
        if not self.pid_file:
            return False 
        try:
            pid_file = open(self.pid_file, 'r')
            pid = int(pid_file.read())
            pid_file.close()
            if pid == 0:
                return False
        except __HOLE__, e:
            return False
        
        try:
            os.kill(pid, 0)
            return pid
        except OSError, e:
            if e.errno == errno.ESRCH:
                return None
            elif e.errno == errno.EPERM:
                return pid
dataset/ETHPy150Open cyberdelia/peafowl/peafowl/runner.py/ProcessHelper.is_running