lkml.org 
[lkml]   [1996]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: tty->count ?
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?


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.164 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site