Joe Peterson 54d2a37eda Fix IXANY and restart after signal (e.g. ctrl-C) in n_tty line discipline
Fix two N_TTY line discipline issues related to resuming a stopped TTY
(typically done with ctrl-S):

1) Fix handling of character that resumes a stopped TTY (with IXANY)

With "stty ixany", the TTY line discipline would lose the first character
after the stop, so typing, for example, "hi^Sthere" resulted in "hihere"
(the 't' would cause the resume after ^S, but it would then be thrown away
rather than processed as an input character).  This was inconsistent with
the behavior of other Unix systems.

2) Fix interrupt signal (e.g. ctrl-C) behavior in stopped TTYs

With "stty -ixany" (often the default), interrupt signals were ignored
in a stopped TTY until the TTY was resumed with the start char (typically
ctrl-Q), which was inconsistent with the behavior of other Unix systems.

Signed-off-by: Joe Peterson <joe@skyrush.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-06 10:41:09 -08:00
..
2008-02-03 17:11:42 +02:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:52 -07:00
2007-05-08 11:15:09 -07:00
2008-02-03 17:11:42 +02:00
2008-02-03 17:11:42 +02:00
2007-10-19 23:21:04 +02:00
2008-01-30 13:30:27 +01:00
2008-01-24 20:40:04 -08:00
2007-07-19 10:04:43 -07:00
2007-10-29 07:41:32 -07:00
2007-07-29 17:09:29 -07:00
2007-10-18 14:37:27 -07:00
2007-10-17 08:42:55 -07:00
2008-02-02 15:14:48 -08:00
2007-07-21 17:49:16 -07:00
2007-10-18 14:37:23 -07:00
2008-02-06 10:41:00 -08:00
2007-07-16 09:05:46 -07:00
2007-10-19 11:53:43 -07:00
2008-02-03 17:11:42 +02:00
2007-10-17 08:42:56 -07:00
2008-02-06 10:41:04 -08:00