Date: Sun, 1 Oct 2000 17:21:58 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Jamie Norwood <mistwolf@mushhaven.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Raising PTYs Message-ID: <20001001172158.A19710@dan.emsphone.com> In-Reply-To: <20001001151030.A89252@mushhaven.net>; from "Jamie Norwood" on Sun Oct 1 15:10:31 GMT 2000 References: <20001001151030.A89252@mushhaven.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001001172158.A19710>