Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 2003 17:40:23 +1030
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        Justin Burke <mlist-freebsd-questions@alt255.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Out of pty's
Message-ID:  <200312071740.23327.malcolm.kay@internode.on.net>
In-Reply-To: <20031207041255.GB62068@alt255.com>
References:  <00e701c3bac2$c875c910$5401a8c0@borg.fielden.com.au> <200312051326.33419.malcolm.kay@internode.on.net> <20031207041255.GB62068@alt255.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 Dec 2003 14:42, Justin Burke wrote:
> * Malcolm Kay (malcolm.kay@internode.on.net) wrote:
> > >     1. Build and install a new kernel with the line
> > >
> > >  pseudo-device pty 256
> > >
> > >        in the configuration file.
> > >
> > >     2. Run the commands
> >
> > I believe this may be out of date. I think the kernel may now
> > produce 256 by default -- I'm on 4.7-STABLE and more than 32 exist fo=
r
> > me.
>
> More than 32 may exist, but can you actually use them? 96 ptys currentl=
y
> exist on my system, but I can only use 32. The pseudo-device line in my
> kernel is the default (ie.  no numeric value is provided).
>

There is also no numeric value in the relevant line of my kernel config.

I would think that if you can't use ptys they don't exist -- but you migh=
t=20
still have references to non-existing ptys in /dev/

Are they listed in /etc/ttys? -- apparently this is needed for some=20
applications to know they exist.

My check for real existance of ptyq0/ttyq0 was to enter
# cat /dev/ttyq0
in one console window and
# echo fred > /dev/ptyq0
in another.
'fred' then appears in the first window and both commands complete.

I would have thought this was pretty strong evidence that at least this=20
master/slave pair actually existed.

(I understand that xterm will not find all 256 ptys -- apparently some=20
limitation in xterm -- but should be able to find at least 64.)


Malcolm Kay





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312071740.23327.malcolm.kay>