Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Apr 2009 13:25:39 +0200
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Ed Schouten <ed@80386.nl>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: How to increase the max pty's on Freebsd 7.0?
Message-ID:  <20090408112538.GA68699@cicely7.cicely.de>
In-Reply-To: <20090402061003.GR13393@hoeg.nl>
References:  <A48E38AADF784030A7496551F1416A3B@multiplay.co.uk> <20090401205306.GO13393@hoeg.nl> <20090401205703.GX31897@deviant.kiev.zoral.com.ua> <20090401210835.GP13393@hoeg.nl> <20090401215308.GA91493@psconsult.nl> <20090402061003.GR13393@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 02, 2009 at 08:10:03AM +0200, Ed Schouten wrote:
> * Paul Schenkeveld <fb-hackers@psconsult.nl> wrote:
> > Or change 'pts' to, for example, 'pt' so without changing utmp and
> > related stuff we'll have space for a four digit pty number.
> 
> I've noticed lots of apps already misbehave because of the pty(4) ->
> pts(4) migration. I guess using a new naming scheme would totally break
> stuff. There are lots of apps that do things like:
> 
> 	if (strncmp(tty, "tty", 3) != 0 && strncmp(tty, "pts/", 4) != 0)
> 		printf("Not a valid pseudo-terminal!\n");
> 
> But those are just workarounds. Our utmp format is broken anyway. It's
> not just UT_LINESIZE that's too small. I think we received many
> complaints from people who want to increase UT_HOSTSIZE as well.

Well, UT_HOSTSIZE can't hold a full sized IPv6 address.

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



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