Lines Matching refs:child_fd
397 self.child_fd = -1 # initially closed
469 s.append('child_fd: ' + str(self.child_fd))
528 self.pid, self.child_fd = pty.fork()
532 self.pid, self.child_fd = self.__fork_pty()
536 self.child_fd = sys.stdout.fileno() # used by setwinsize()
583 parent_fd, child_fd = os.openpty()
584 if parent_fd < 0 or child_fd < 0:
593 self.__pty_make_controlling_tty(child_fd)
595 os.dup2(child_fd, 0)
596 os.dup2(child_fd, 1)
597 os.dup2(child_fd, 2)
599 if child_fd > 2:
600 os.close(child_fd)
603 os.close(child_fd)
655 return self.child_fd
667 os.close (self.child_fd)
672 self.child_fd = -1
688 return os.isatty(self.child_fd)
728 attr = termios.tcgetattr(self.child_fd)
764 self.child_fd
765 attr = termios.tcgetattr(self.child_fd)
772 termios.tcsetattr(self.child_fd, termios.TCSANOW, attr)
808 r,w,e = self.__select([self.child_fd], [], [], 0) # timeout of 0 means "poll"
815 r, w, e = self.__select([self.child_fd], [], [], 2)
820 r,w,e = self.__select([self.child_fd], [], [], timeout)
831 if self.child_fd in r:
833 s = os.read(self.child_fd, size)
958 c = os.write(self.child_fd, s)
1024 char = termios.tcgetattr(self.child_fd)[6][termios.VEOF]
1036 char = termios.tcgetattr(self.child_fd)[6][termios.VINTR]
1523 r,w,e = self.__select([self.child_fd, self.STDIN_FILENO], [], [])
1524 if self.child_fd in r:
1525 data = self.__interact_read(self.child_fd)
1537 self.__interact_writen(self.child_fd, data)
1539 self.__interact_writen(self.child_fd, data)