Пример #1
0
 def get_process_terminal(self):
     tty_nr = _psutil_bsd.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_bsd.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_bsd.get_process_tty_nr(self.pid)
     try:
         return _TERMINAL_MAP[tty_nr]
     except KeyError:
         return None
Пример #4
0
 def get_process_terminal(self):
     tty_nr = _psutil_bsd.get_process_tty_nr(self.pid)
     try:
         return _TERMINAL_MAP[tty_nr]
     except KeyError:
         return None