def kill(self): if self._gone: return ProcessUtils.kill_proc(self.pid) if self._debugger: self._debugger.passive_processes.remove(self) self._gone = True if self._debugger: self._debugger.passive_processes.remove(self) self._timer.enabled = False
def _check_alive(self): if self._gone: self._timer.enabled = False return if self._backend_info.subprocess: alive = self._backend_info.subprocess.poll() == None else: alive = ProcessUtils.is_proc_alive(self.pid) if not alive: self._gone = True self._timer.enabled = False if self._debugger: self._debugger.passive_processes.remove(self)
def target_full_cmdline(self): try: return ProcessUtils.get_pid_full_cmdline_as_array(self.pid) except: return None
def target_exe(self): try: return ProcessUtils.get_pid_name(self.pid) except Exception, ex: log1("Error getting target exe for %s: %s", self.pid, ex) return ""