Esempio n. 1
0
 def nice_set(self, value):
     if self.pid in (2, 3):
         # Special case PIDs: internally setpriority(3) return ESRCH
         # (no such process), no matter what.
         # The process actually exists though, as it has a name,
         # creation time, etc.
         raise AccessDenied(self.pid, self._name)
     return _psutil_posix.setpriority(self.pid, value)
Esempio n. 2
0
 def set_process_nice(self, value):
     if self.pid in (2, 3):
         # Special case PIDs: internally setpriority(3) return ESRCH
         # (no such process), no matter what.
         # The process actually exists though, as it has a name,
         # creation time, etc.
         raise AccessDenied(self.pid, self._process_name)
     return _psutil_posix.setpriority(self.pid, value)
Esempio n. 3
0
 def set_process_nice(self, value):
     return _psutil_posix.setpriority(self.pid, value)
Esempio n. 4
0
 def set_process_nice(self, value):
     return _psutil_posix.setpriority(self.pid, value)
Esempio n. 5
0
 def nice_set(self, value):
     return _psutil_posix.setpriority(self.pid, value)
Esempio n. 6
0
 def nice_set(self, value):
     return _psutil_posix.setpriority(self.pid, value)