Re: pty pairs in POXIX with devpts

H. Peter Anvin (hpa@transmeta.com)
28 Apr 1998 22:16:18 GMT


Followup to: <Pine.SUN.3.96.980428120058.9307F-100000@amsterdam.lcs.mit.edu>
By author: "C. Scott Ananian" <cananian@lcs.mit.edu>
In newsgroup: linux.dev.kernel
> >
> > This is a very good point. Obviously you can't allocate it twice, but
> > there is nastiness about having the two allocated from the same pool.
> > One possibility is to remove the restriction that you need to have
> > used /dev/ptmx in order for the device node to exist in /dev/pts, and
> > make all the /dev/tty?? entries symlinks to /dev/pts. Does anyone
> > know if that solution would work properly? I have a nasty feeling it
> > wouldn't.
>
> We dealt with this with devfs. IIRC, libc 5.X doesn't like symlinks to
> ttys. glibc might handle this better, I don't recall. Richard Gooch
> patched libc to work around this problem; I've cc'ed this message to him
> for his comments.
> --Scott
> @ @

I suspect the thing to do is to once and for all divorce "legacy"
TTY's and "new" TTY's. At the same time, I'd like to discontinue
support for the old entries on major 4; they just cause problems.

I wish I could just flush the old apps, but I don't think that's going
to happen :)

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu