示例#1
0
文件: _pssunos.py 项目: ztop/psutil
 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)
示例#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)
示例#3
0
 def set_process_nice(self, value):
     return _psutil_posix.setpriority(self.pid, value)
示例#4
0
 def set_process_nice(self, value):
     return _psutil_posix.setpriority(self.pid, value)
示例#5
0
 def nice_set(self, value):
     return _psutil_posix.setpriority(self.pid, value)
示例#6
0
 def nice_set(self, value):
     return _psutil_posix.setpriority(self.pid, value)