:Ok fellas, I know I'm not the only admin that's experienced this:
: After a machine has been up a while, occasionally a ttyp* will hang.
:Maybe this is because it sat there long enough and something got garbled, or
:whatever. Who knows.
: I used to fix the hung ttyp* with (for ttyp1) a 'stty stop 1'
:followed by a 'stty start 1'. This used to work; lately it has not. No Linux
:manual I have (Linux Bible, Linux Unleashed) details to me how actually go
:about combatting this problem. I searched web resources, and grep'd howtos
:and FAQ's, but to no avail.
First of all, are you saying that you think the "1" in "stty stop 1" refers
to ttyp1? If so, you're way off. waaaay off... I can't blame you, though,
because there doesn't seem to be any good documentation in any obvious
place for termios and stty. The stty man page should give you SOME clue
what the "1" actually means though.
Lesson 1: stty uses its standard input to determine what tty to act on. So,
if you want to do something to ttyp1, you'll do "stty whatever </dev/ttyp1"
If you don't know what the < means, go back to your "UNIX for Dipshits"
Lesson 2: The "stop" and "start" options to stty are used for setting the
flow control characters. The stop character is normally ^S, the start
character is normally ^Q. "stty stop 1" changes the stop character to ^A
(because ^A is character number 1). It has nothing to do with ttyp1, unless
its stdin is ttyp1.
Lesson 3: to quickly reset ttyp1 to default values, "stty sane </dev/ttyp1"
If the termios was the problem, that will fix it. Of course, the problem
may be completely unrelated to termios..