UNIX pseudo terminal
Introduce the relevant theoretical knowledge about UNIX in recent research, and record relevant important concept memos here. Overview Pseudo-terminal means that to an application, it looks like a terminal, but in fact it is not a real terminal. Usually a process opens a pseudo-terminal master and calls fork. The child process establishes a new session, opens a corresponding pseudo-terminal slave device, copies its file descriptor to stdin, and then calls exec. The pseudo-terminal slave device is called the controlling terminal of the child process. Looking like a bidirectional pipe, the terminal line discipline on the slave device gives us additional processing power that a normal pipe doesn't have. Typical uses of pseudo-terminals The most typical examples of network login servers are telnetd and rlogind… Read more