Example #1
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, "?")
Example #2
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, "?")
Example #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, '?')