Пример #1
0
    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
Пример #2
0
  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
Пример #3
0
  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)
Пример #4
0
    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)
Пример #5
0
 def target_full_cmdline(self):
   try:
     return ProcessUtils.get_pid_full_cmdline_as_array(self.pid)
   except:
     return None
Пример #6
0
 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 ""
Пример #7
0
 def target_full_cmdline(self):
     try:
         return ProcessUtils.get_pid_full_cmdline_as_array(self.pid)
     except:
         return None
Пример #8
0
 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 ""