From owner-freebsd-questions Sun Oct 1 15:22: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 7F51F37B503 for ; Sun, 1 Oct 2000 15:22:06 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id RAA25400; Sun, 1 Oct 2000 17:21:58 -0500 (CDT) (envelope-from dan) Date: Sun, 1 Oct 2000 17:21:58 -0500 From: Dan Nelson To: Jamie Norwood Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Raising PTYs Message-ID: <20001001172158.A19710@dan.emsphone.com> References: <20001001151030.A89252@mushhaven.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <20001001151030.A89252@mushhaven.net>; from "Jamie Norwood" on Sun Oct 1 15:10:31 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 01), Jamie Norwood said: > OK, I must be doing something wrong. > > I did, in my kernel config: > > pseudo-device pty 256 # Pseudo-ttys (telnet etc) > > Compiled, installed, rebooted. Did, in /dev: ./MAKEDEV pty7 > > Yet I still can't open more than 35-odd pty's. This is bad, as is means > that when I have a lot of people on the machine, noone else can log in. > > Can someone tell me what I am doing wrong? You're getting tripped up by the mass of inconsistencies that is MAKEDEV. You need to run "./MAKEDEV pty0 pty1 pty2 pty3 pty4 pty5 pty6 pty7" to create all 256 ptys. When you ran MAKEDEV pty7, you created the last set of 32 ptys. I think openpty() walks the list of ptys in sequential order, so when it couldn't find pty #33 it stopped, even though ptys #223-255 were available. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message