Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Oct 2007 15:19:48 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Ed Schouten <ed@fxq.nl>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, Vlad GALU <dudu@dudu.ro>, Steven Hartland <killing@multiplay.co.uk>, freebsd-stable@freebsd.org, gepu@flow.rdsnet.ro
Subject:   Re: How to enable more than 256 pty's?
Message-ID:  <86odfhwt57.fsf@ds4.des.no>
In-Reply-To: <20071002125702.GQ12364@hoeg.nl> (Ed Schouten's message of "Tue\,  2 Oct 2007 14\:57\:02 %2B0200")
References:  <001f01c80407$1358d490$b6db87d4@multiplay.co.uk> <00ab01c8040c$7c408160$b6db87d4@multiplay.co.uk> <012101c804e5$efa7e9c0$b6db87d4@multiplay.co.uk> <86abr1yb68.fsf@ds4.des.no> <ad79ad6b0710020514n41d70cd9k6f16164899a7290c@mail.gmail.com> <86641pyanc.fsf@ds4.des.no> <ad79ad6b0710020519o30ee6478j38c0229a9746d10@mail.gmail.com> <ad79ad6b0710020537j28827d5ex19113dd395b4cc73@mail.gmail.com> <86wsu5wuz3.fsf@ds4.des.no> <ad79ad6b0710020541n22dbdfabgb13cd84eca8d8011@mail.gmail.com> <20071002125702.GQ12364@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Ed Schouten <ed@fxq.nl> writes:
> This is a known issue IIRC. See line 245 of tty_pts.c 1.16. Can be
> easily reproduced by killing the sshd while apps are still running in
> the shell.

It's not that simple.  The question is why t_refcnt > 1 when there are
no processes left attached to the tty.

I managed to reproduce this as follows:

$ script -q 1 script -q 2 script -q 3 script -q 4 tty

if nothing else is going on at the same time, you should always see the
same output, but instead you see a steadily increasing pts number.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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