> 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>)