 | | In SVR4, the race condition has been solved by creating a special “clone device” to use when allocating a master pseudo-terminal. The clone device, when opened, returns a file descriptor referring to an unused pseudo-terminal, and locks out the corresponding slave device so that it cannot be opened by another process. The process that has the master side open can then unlock the slave and open it itself. | |
|