Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376068
b: refs/heads/master
c: dab73b4
h: refs/heads/master
v: v3
  • Loading branch information
Wang YanQing authored and Greg Kroah-Hartman committed May 20, 2013
1 parent 13b9480 commit bbfcda6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 421b40a6286ee343d77d5e51f5ee6d04d7a2a90f
refs/heads/master: dab73b4eb9ef924a2b90dab84e539076d82b256f
8 changes: 8 additions & 0 deletions trunk/drivers/tty/n_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,14 @@ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
ldata->real_raw = 0;
}
n_tty_set_room(tty);
/*
* Fix tty hang when I_IXON(tty) is cleared, but the tty
* been stopped by STOP_CHAR(tty) before it.
*/
if (!I_IXON(tty) && old && (old->c_iflag & IXON) && !tty->flow_stopped) {
start_tty(tty);
}

/* The termios change make the tty ready for I/O */
wake_up_interruptible(&tty->write_wait);
wake_up_interruptible(&tty->read_wait);
Expand Down

0 comments on commit bbfcda6

Please sign in to comment.