Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125065
b: refs/heads/master
c: ff8cb0f
h: refs/heads/master
i:
  125063: e0238c0
v: v3
  • Loading branch information
Thomas Pfaff authored and Linus Torvalds committed Jan 2, 2009
1 parent 37468c6 commit 326b878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eff6937a46e096eb35c16a391617b7a5e098a30c
refs/heads/master: ff8cb0fd6f195389aefe55d5dac9927d09a9de54
6 changes: 3 additions & 3 deletions trunk/drivers/char/n_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -1352,10 +1352,8 @@ static void n_tty_write_wakeup(struct tty_struct *tty)
/* Write out any echoed characters that are still pending */
process_echoes(tty);

if (tty->fasync) {
set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
if (tty->fasync && test_and_clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags))
kill_fasync(&tty->fasync, SIGIO, POLL_OUT);
}
}

/**
Expand Down Expand Up @@ -2014,6 +2012,8 @@ static ssize_t n_tty_write(struct tty_struct *tty, struct file *file,
break_out:
__set_current_state(TASK_RUNNING);
remove_wait_queue(&tty->write_wait, &wait);
if (b - buf != nr && tty->fasync)
set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
return (b - buf) ? b - buf : retval;
}

Expand Down

0 comments on commit 326b878

Please sign in to comment.