diff options
author | Wang YanQing | 2013-05-09 14:16:47 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-05-20 12:15:59 -0700 |
commit | dab73b4eb9ef924a2b90dab84e539076d82b256f (patch) | |
tree | 50d05c7caa154a4046cce9c1e9890abea37f909c /drivers/tty/serial/m32r_sio.h | |
parent | 421b40a6286ee343d77d5e51f5ee6d04d7a2a90f (diff) |
TTY: Fix tty miss restart after we turn off flow-control
I meet emacs hang in start if I do the operation below:
1: echo 3 > /proc/sys/vm/drop_caches
2: emacs BigFile
3: Press CTRL-S follow 2 immediately
Then emacs hang on, CTRL-Q can't resume, the terminal
hang on, you can do nothing with this terminal except
close it.
The reason is before emacs takeover control the tty,
we use CTRL-S to XOFF it. Then when emacs takeover the
control, it may don't use the flow-control, so emacs hang.
This patch fix it.
This patch will fix a kind of strange tty relation hang problem,
I believe I meet it with vim in ssh, and also see below bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465823
Signed-off-by: Wang YanQing <udknight@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/m32r_sio.h')
0 files changed, 0 insertions, 0 deletions