Example #1
0
 def _kill_process(self, pid, kill_signal):
     try:
         # A process started by a root helper will be running as
         # root and need to be killed via the same helper.
         utils.kill_process(pid, kill_signal, self.run_as_root)
     except Exception:
         LOG.exception('An error occurred while killing [%s].', self.cmd)
         return False
     return True
Example #2
0
 def _kill_process(self, pid, kill_signal):
     try:
         # A process started by a root helper will be running as
         # root and need to be killed via the same helper.
         utils.kill_process(pid, kill_signal, self.run_as_root)
     except Exception:
         LOG.exception('An error occurred while killing [%s].',
                       self.cmd)
         return False
     return True