Subject: Re: Prolem with ptys
To: Bill Studenmund <wrstuden@loki.stanford.edu>
From: Albert Carter <SilverMoonTiger@wizzard.tiac.net>
List: port-mac68k
Date: 04/22/1997 22:03:30
>>
>> Here's a similar problem along these lines but a little different.  I can
>> open dt and X but when I do I can't open any more then 3 dt terminals I've
>> tried all the suggestions here dt -n 6 opens only 3 usuable terminals and
>> cmd-0 does absolutely nothing as for X if I open 3 xterms, 1 console, and 1
>> xclock using my .xinitrc it terminates X after loading the last xterm and
>> gives socket kill error messages on the 2nd and 3rd terminal.  If I only
>> open 2 xterms, 1 console, and 1 xclock its fine though.  Also whenever I
>> try to telnet into machine when either X or dt is running I get an error
>> "telnetd: all network ports are in use".  How do I fix this?
>
>You have the EXECT same problem. You need more pty's.
>
>cd to /dev .
>
>type "grep pty MAKEDEV | grep mknod" and look at the output. If it is
>something like:
>
>rm -f pty%s%x; mknod pty%s%x c 5 %d; ", \
>                               ^
>
>you're ok. If there's a 6 instead of a 5 (like:
>rm -f pty%s%x; mknod pty%s%x c 6 %d; ", \
>)
>
>you need to download a new copy of /dev/MAKEDEV.
>
>Once you have a good MAKEDEV, cd /dev; ./MAKEDEV pty0
>
>and the problem will go away.
>
>Take care,
>
>Bill
>
>P.S. the MAKEDEV problem probably came from port-i386 having pty's
>using char dev 5 & 6 while we use 4 & 5.

This isn't the problem.  I just checked tonight and its the good MAKEDEV (I
got it with the 2.1 distribution so I was kinda sure of this but double
checked to make sure) I also listed the /dev directory and found that I
should have plenty of pty's I have /dev/ptyp[0-3] /dev/ptyq[0-9]
/dev/ptyq[a-f].  Does anyone know what could be causing these problems and
how to fix it?

Thanks,
Albert