Bug 1270 - /etc/ttys does not list all valid ptys (breaks screen, xterm)
Summary: /etc/ttys does not list all valid ptys (breaks screen, xterm)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 2.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-05-28 13:40 UTC by winter
Modified: 1996-10-22 22:17 UTC (History)
0 users

See Also:


Attachments
file.diff (5.19 KB, patch)
1996-05-28 13:40 UTC, winter
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description winter 1996-05-28 13:40:01 UTC
	Applications that rely on getttyent and related calls will 
	not find entries that are not listed in /etc/ttys.  Screen
	and xterm (rxvt, color_xterm) will not be able to obtain 
	unique utmp slots as a result.  This isn't a critical problem
	but it will keep utilities such as 'finger', 'who' and 'w' 
	from displaying the correct information.

Fix: This is a patch against /usr/src/etc/ttys which adds the missing
entries.  Note that we can't use all of these ptys unless the kernel
is compiled with the line:

pseudo-device	pty	256

GENERIC is compiled with:

pseudo-device	pty	16

Which is really too small to be of real use.  The overhead for each
additional pty isn't more than 128 bits. (or so)  Its probably safe 
to move this up to 32, as that is what the default in sys/kern/tty_pty.c
appears to be.  (heh.  Maybe I should file a separate pr for this...)
How-To-Repeat: 
	Using screen, open enough windows so that you use ttys in the 
	range of [qrsPQRS]*.  Note that 'w', 'who' and 'finger' don't
	show your screen sessions.
Comment 1 scrappy freebsd_committer freebsd_triage 1996-10-22 06:27:55 UTC
State Changed
From-To: open->feedback



There are two of these PRs...comments on whether the patches should 
be installed, adding the devices to /etc/ttys?  The 'default' system 
only configures the /dev/ttyp* devices...but... 

Comment 2 scrappy freebsd_committer freebsd_triage 1996-10-22 22:14:34 UTC
State Changed
From-To: feedback->closed


Fixed in Rev.1.16 of /etc/ttys