tty->count != #fd's

Thomas Koenig (
Thu, 14 Nov 1996 14:30:45 +0100 (MET)

I just had the following warning in 2.0.25:

foo kernel: Warning: dev (04:c5) tty->count(1) != #fd's(2) in do_tty_hangup

This appears to happen sometimes when a ssh connection is terminated,
from random pty's.

This bug has been there for quite some time, and looks like a race
condition in the pty or tty code to me.

Does anybody have any hints where I should start looking for race

Thomas Koenig,, ig25@dkauni2.bitnet.
The joy of engineering is to find a straight line on a double
logarithmic diagram.