|
@@ -228,8 +228,8 @@ static ssize_t chars_in_buffer(struct tty_struct *tty)
|
|
|
|
|
|
static void n_tty_write_wakeup(struct tty_struct *tty)
|
|
static void n_tty_write_wakeup(struct tty_struct *tty)
|
|
{
|
|
{
|
|
- if (tty->fasync && test_and_clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags))
|
|
|
|
- kill_fasync(&tty->fasync, SIGIO, POLL_OUT);
|
|
|
|
|
|
+ clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
|
|
|
|
+ kill_fasync(&tty->fasync, SIGIO, POLL_OUT);
|
|
}
|
|
}
|
|
|
|
|
|
static void n_tty_check_throttle(struct tty_struct *tty)
|
|
static void n_tty_check_throttle(struct tty_struct *tty)
|