Пример #1
0
 def get_process_status(self):
     code = _psutil_bsd.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_bsd.get_process_status(self.pid)
     if code in PROC_STATUSES:
         return PROC_STATUSES[code]
     # XXX is this legit? will we even ever get here?
     return "?"
Пример #3
0
 def get_process_status(self):
     code = _psutil_bsd.get_process_status(self.pid)
     if code in _status_map:
         return _status_map[code]
     return constant(-1, "?")
Пример #4
0
 def get_process_status(self):
     code = _psutil_bsd.get_process_status(self.pid)
     if code in PROC_STATUSES:
         return PROC_STATUSES[code]
     # XXX is this legit? will we even ever get here?
     return "?"
Пример #5
0
 def get_process_status(self):
     code = _psutil_bsd.get_process_status(self.pid)
     if code in _status_map:
         return _status_map[code]
     # XXX is this legit? will we even ever get here?
     return "?"
Пример #6
0
 def get_process_status(self):
     code = _psutil_bsd.get_process_status(self.pid)
     if code in _status_map:
         return _status_map[code]
     # XXX is this legit? will we even ever get here?
     return "?"