Re: tty->count ?

Steve VanDevender (stevev@efn.org)
Tue, 2 Jul 1996 23:06:45 -0700


Theodore Y. Ts'o writes:
> From: alan@lxorguk.ukuu.org.uk (Alan Cox)
> Date: Sat, 29 Jun 1996 10:39:29 +0100 (BST)
>
> > Warning: dev (04:da) tty->count(2) != #fd's(3) in tty_open
> > Warning: dev (04:da) tty->count(2) != #fd's(3) in release_dev
> >
>
> That looks like the race condition on ttys (remember the one that caused
> some of the rocketport fun). Im not sure when Ted put the fix back into the
> 1.3.x -> 2.0 code for generic tty drivers
>
> The standard problem here is that you have more than one device file in
> /dev referring to a pty using both the old major number #4 and the new
> major numbers (#2 and #3). This causes the debugging code to screw up,
> since it doesn't realize that a tty could be opened from two different
> sets of (major,minor) numbers.
>
> - Ted

This seems like a very radical change. On my system running 2.0.0, the
ttys and ptys are in major 4, the floppy is major 2, and the IDE disks
are major 3. Are ttys/ptys sharing major numbers with these devices, or
do I need to completely remake a whole bunch of my device entries?