Re: Out of ptys??

Terry L Ridder (terrylr@tbcnet.com)
Sun, 16 Aug 1998 02:48:59 -0500


david parsons wrote:
>
> In article <linux.kernel.Pine.LNX.4.02.9808141715110.14589-100000@neko.binary9.net>,
> Nicholas J. Leon <nicholas@binary9.net> wrote:
> >On Fri, 14 Aug 1998, Richard B. Johnson wrote:
> >
> > #
> > # This system has been running 2.1.115 for awhile and it seems to work
> > # I just updated another machine, identical hardware, etc.
> > # It does not work.
> > #
> > # # rlogin quark
> > # rlogind: Out of ptys. <------------ What the hell!
> >
> >The major number from pty's has changed from 4 to 3 & 2 in 2.1.115.
>
> I don't know who did this, but, please, change the major numbers
> back; having to manually redo all the /dev entries for ptys
> every time you toggle the system between a <2.1.115 and >=2.1.115
> kernel will get old really fast.

you could temporarily place something along the lines of the below
into your rc.local file so it runs at startup.

version=`uname -r`
major=`echo ${version} | awk -F. '{print $1}'`
minor=`wcho ${version} | awk -F. '{print $2}'`
patch=`echo ${version} | awk -F. '{print $3}'`

if [ ${major} -eq 2 -a ${minor} -eq 1 -a ${patch} -ge 115 ]
then
(cd /dev; ./MAKEDEV pty)
else
(cd /dev; ./MAKEDEV old_pty)
fi

Then you just need to modify /dev/MAKEDEV to understand creating
both the new pty and the old pty.

>
> david parsons

-- 
Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

When the toast is burnt and all the milk has turned and Captain Crunch is waving farewell when the Big One finds you may this song remind you that they don't serve breakfast in hell ==Breakfast==Newsboys

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html