Lines Matching refs:master_fd
29 master_fd, slave_name = _open_terminal()
31 return master_fd, slave_fd
39 master_fd, slave_fd = os.openpty()
45 return master_fd, slave_name
96 master_fd, slave_fd = openpty()
101 os.close(master_fd)
117 return pid, master_fd
129 def _copy(master_fd, master_read=_read, stdin_read=_read): argument
134 fds = [master_fd, STDIN_FILENO]
137 if master_fd in rfds:
138 data = master_read(master_fd)
140 fds.remove(master_fd)
148 _writen(master_fd, data)
154 pid, master_fd = fork()
164 _copy(master_fd, master_read, stdin_read)
169 os.close(master_fd)