예제 #1
0
 def get_process_status(self):
     code = _psutil_osx.get_process_status(self.pid)
     if code in _status_map:
         return _status_map[code]
     return constant(-1, "?")
예제 #2
0
 def get_process_status(self):
     code = _psutil_osx.get_process_status(self.pid)
     # XXX is '?' legit? (we're not supposed to return it anyway)
     return PROC_STATUSES.get(code, "?")
예제 #3
0
 def get_process_status(self):
     code = _psutil_osx.get_process_status(self.pid)
     # XXX is '?' legit? (we're not supposed to return it anyway)
     return _status_map.get(code, '?')
예제 #4
0
파일: _psosx.py 프로젝트: BenningtonCS/GFS
 def get_process_status(self):
     code = _psutil_osx.get_process_status(self.pid)
     # XXX is '?' legit? (we're not supposed to return it anyway)
     return _status_map.get(code, '?')
예제 #5
0
파일: _psosx.py 프로젝트: basketwill/psutil
 def get_process_status(self):
     code = _psutil_osx.get_process_status(self.pid)
     if code in _status_map:
         return _status_map[code]
     return constant(-1, "?")