コード例 #1
0
ファイル: workers.py プロジェクト: opensource-tnbt/rem
 def Kill(self):
     super(ThreadJobWorker, self).Kill()
     if self.pids:
         for pid in copy.copy(self.pids):
             logging.debug("worker\ttrying to kill process with pid %s",
                           pid)
             osspec.terminate(pid)
コード例 #2
0
 def Terminate(self):
     self.alive = False
     pids = self.running_pids
     if pids:
         logging.debug("trying to terminate processes with pids: %s", ",".join(map(str, pids)))
         for pid in list(pids):
             osspec.terminate(pid)
コード例 #3
0
ファイル: workers.py プロジェクト: kaa-the-snake/rem
 def Kill(self):
     super(ThreadJobWorker, self).Kill()
     if self.pids:
         for pid in copy.copy(self.pids):
             logging.debug("worker\ttrying to kill process with pid %s", pid)
             osspec.terminate(pid)
コード例 #4
0
ファイル: job.py プロジェクト: znick/rem
 def Terminate(self):
     pids = getattr(self, "pids", None)
     if pids:
         for pid in list(pids):
             osspec.terminate(pid)