Lines Matching refs:pid
62 for child in psutil.Process(proc.pid).children(recursive=True):
64 os.kill(child.pid, signal.SIGTERM)
203 pid = int(pid_file.read())
207 os.kill(pid, signal.SIGKILL)
891 def _get_cpu_time(pid): argument
898 proc = psutil.Process(pid)
950 pid = 0
953 pid = int(pid_file.read())
962 if pid and this_timeout > 0:
966 cpu_time = QEMUHandler._get_cpu_time(pid)
982 if pid == 0 and os.path.exists(pid_fn):
984 pid = int(pid_file.read())
1039 if pid:
1042 if pid:
1043 os.kill(pid, signal.SIGTERM)
1180 self.pid = 0
1192 def _get_cpu_time(pid): argument
1199 proc = psutil.Process(pid)
1212 def _stop_qemu_process(pid): argument
1213 if pid:
1215 if pid:
1216 os.kill(pid, signal.SIGTERM)
1290 self.pid = 0
1298 if self.pid and this_timeout > 0:
1302 cpu_time = self._get_cpu_time(self.pid)
1318 if self.pid == 0 and os.path.exists(pid_fn):
1324 self.pid = int(pid_file.read())
1384 self._stop_qemu_process(self.pid)