tty: Line disc gets reset after close

Ravikiran G Thirumalai (kiran@in.ibm.com)
Fri, 11 Jul 2003 15:03:54 +0530


On a rs232 serial port, If i try
# stty -F /dev/ttyS0 line 2
and then execute
# stty -F /dev/ttyS0 -a
line disc was shown as line = 0. Further investigation showed that
close on the tty fd and subsequent open to it resets the line disc to 0.

My question is, is this the expected behaviour?
If change flags like icanon, it remains inspite of close and opens. I'd
expect ldisc to remain that way too.

Thanks,
Kiran
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/