Re: PTY feature? or bug?

Robert de Bath (robert@mayday.compulink.co.uk)
Thu, 25 Apr 1996 20:37:09 +0100 (BST)


On 24 Apr 1996 inr-linux-kernel@ms2.inr.ac.ru wrote:

> I'd like to repeat my question.
> Are you sure, that it should wait for master open?

> I'd propose return EIO (EAGAIN,....) on the attempt to
> open orphaned pty slave. If BSD does not make it, it is
> BSD's bug, I believe.
BAD idea, it's occasionally useful to have init put a getty on the slave
side of one of the higher pty numbers, some other non-aware program can
then be told to open the master side. An example is to provide DOSEMU
with a simulated serial line to the linux machine.

If the open returned EIO the getty would die then be respawned repeatedly,
init gives up PDQ.

--
Rob.                           (Robert de Bath <robert@mayday.compulink.co.uk>)