Exemple #1
0
 def kill_process(self, pid, sig=None):
     """Terminates the process with the given PID."""
     try:
         return _psutil_mswindows.kill_process(pid)
     except OSError, err:
         # work around issue #24
         if (pid == 0) and err.errno in (errno.EINVAL, ERROR_INVALID_PARAMETER):
             raise AccessDenied
         raise
Exemple #2
0
 def kill_process(self):
     """Terminates the process with the given PID."""
     return _psutil_mswindows.kill_process(self.pid)
Exemple #3
0
 def kill_process(self):
     """Terminates the process with the given PID."""
     return _psutil_mswindows.kill_process(self.pid)