From owner-freebsd-questions@FreeBSD.ORG Sat Dec 6 20:12:58 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 259ED16A4CF for ; Sat, 6 Dec 2003 20:12:58 -0800 (PST) Received: from invert.com (srv01.datacenterops.com [209.164.15.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62C8243FB1 for ; Sat, 6 Dec 2003 20:12:56 -0800 (PST) (envelope-from mlist-freebsd-questions@alt255.com) Received: from invert.com (localhost [127.0.0.1]) by invert.com (8.12.9/8.12.9) with ESMTP id hB74CurV096949; Sat, 6 Dec 2003 20:12:56 -0800 (PST) (envelope-from mlist-freebsd-questions@alt255.com) Received: (from jburke@localhost) by invert.com (8.12.9/8.12.9/Submit) id hB74CtZI096948; Sat, 6 Dec 2003 20:12:55 -0800 (PST) (envelope-from mlist-freebsd-questions@alt255.com) X-Authentication-Warning: invert.com: jburke set sender to mlist-freebsd-questions@alt255.com using -f Date: Sat, 6 Dec 2003 20:12:55 -0800 From: Justin Burke To: Malcolm Kay Message-ID: <20031207041255.GB62068@alt255.com> References: <00e701c3bac2$c875c910$5401a8c0@borg.fielden.com.au> <200312051326.33419.malcolm.kay@internode.on.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312051326.33419.malcolm.kay@internode.on.net> User-Agent: Mutt/1.4.1i 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 04:12:58 -0000 * 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 for me. More than 32 may exist, but can you actually use them? 96 ptys currently 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). > > # cd /dev > > # sh MAKEDEV pty{1,2,3,4,5,6,7} > > > > to make 256 device nodes for the new terminals. > > > > On 4.x certainly need this to create more devices. I don't know if you need to > do something with devfs in 5.x, but 5.x doesn't have MAKEDEV. This seems to be the case on my 5.1 box. The ptys are automatically created. And the pty limit has been bummed up to 256 in the default config. (Just checked it with multiple instances of screen....) Justin