From owner-freebsd-questions@FreeBSD.ORG Sat Dec 6 23:10:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A8CA16A4CE for ; Sat, 6 Dec 2003 23:10:31 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id C421743F85 for ; Sat, 6 Dec 2003 23:10:29 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp136-184.lns1.adl2.internode.on.net [150.101.136.184])hB77ANEq039720; Sun, 7 Dec 2003 17:40:24 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Justin Burke Date: Sun, 7 Dec 2003 17:40:23 +1030 User-Agent: KMail/1.4.3 References: <00e701c3bac2$c875c910$5401a8c0@borg.fielden.com.au> <200312051326.33419.malcolm.kay@internode.on.net> <20031207041255.GB62068@alt255.com> In-Reply-To: <20031207041255.GB62068@alt255.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200312071740.23327.malcolm.kay@internode.on.net> cc: freebsd-questions@freebsd.org Subject: Re: Out of pty's X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2003 07:10:31 -0000 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