Esempio n. 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, "?")
Esempio n. 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 "?"
Esempio n. 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, "?")
Esempio n. 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 "?"
Esempio n. 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 "?"
Esempio n. 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 "?"