Re: tty/pty problem

Tony Nugent (tonyn@sctnugen.ppp.gu.edu.au)
Sat, 17 Feb 1996 23:50:20 +1000


Jon Lewis <jlewis@inorganic5.fdt.net> on Sat, 17 Feb 1996:

> > > Has anyone ever noticed/fixed a problem in 1.2.13 in which a tty will
> > > hang? By hang, I mean when I telnet or rlogin to the system, if I get a
[...]
> > Known problem with 1.2.13. Patch for n_tty.c below.
> Thanks for the patch...unfortunately, I already had it...and had
> already applied it to the kernel in question. It doesn't appear to be
> the problem.

Oh, ok...

> The odd thing is I found a solution...but still don't know the problem. I
> used screen to grab the hung tty (so people could actually log into the
> system) and started sending control characters to the tty after having
> tried many other things. Sending xon (Ctrl-a q in screen) to the tty
> unfroze it.

I'm no expert on this, so I can only summise that a Ctrl-S (xoff)
character got sent somehow from a buggy interface, or that some
internal bug in the tty routines is setting off this behaviour.

Does the same thing happen *without* this patch in place?
(After all, not _all_ patches fix things :-)

> Any idea why...or how to prevent it from happening again?

I've never had this happen to me after I telnet/rlogin in from
outside. I've done this quite a few times, but certainly not on a
regular basis. If there is a problem lurking about then it has yet to
jump out of the shadows and bite me.

Are you sure that there isn't any bugs with the software you're using
to connect to your system?

Cheers
Tony
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
T.Nugent@sct.gu.edu.au tonyn@sctnugen.ppp.gu.edu.au
Brisbane Queensland Australia
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
Sure, Reagan has promised to take senility tests. But what if he forgets?