示例#1
0
 def get_process_terminal(self):
     tty_nr = _psutil_osx.get_process_tty_nr(self.pid)
     tmap = _psposix._get_terminal_map()
     try:
         return tmap[tty_nr]
     except KeyError:
         return None
示例#2
0
 def get_process_terminal(self):
     tty_nr = _psutil_osx.get_process_tty_nr(self.pid)
     tmap = _psposix._get_terminal_map()
     try:
         return tmap[tty_nr]
     except KeyError:
         return None
示例#3
0
 def get_process_terminal(self):
     tty_nr = _psutil_osx.get_process_tty_nr(self.pid)
     try:
         return _TERMINAL_MAP[tty_nr]
     except KeyError:
         return None
示例#4
0
文件: _psosx.py 项目: 130s/rqt_top
 def get_process_terminal(self):
     tty_nr = _psutil_osx.get_process_tty_nr(self.pid)
     try:
         return _TERMINAL_MAP[tty_nr]
     except KeyError:
         return None