def isRunning(self):
        try:
            if self.pid > 0:
                #in case the process is an unreaped child
                os.waitpid(self.pid, os.WNOHANG)
        except: pass
        try: return os.stat(self.path).st_ino == self.inode
        except: return False
is a process running
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/kitt/proc/SunOS.py/Process.isRunning