pty: quickfix for the pty ENXIO timing problems

This also makes close stall in the normal case which is apparently
needed to fix emacs

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Alan Cox and committed by Linus Torvalds 3a542974 f1462147

+2
+2
drivers/char/pty.c
··· 52 52 return; 53 53 tty->link->packet = 0; 54 54 set_bit(TTY_OTHER_CLOSED, &tty->link->flags); 55 + tty_flip_buffer_push(tty->link); 55 56 wake_up_interruptible(&tty->link->read_wait); 56 57 wake_up_interruptible(&tty->link->write_wait); 57 58 if (tty->driver->subtype == PTY_TYPE_MASTER) { ··· 208 207 clear_bit(TTY_OTHER_CLOSED, &tty->link->flags); 209 208 set_bit(TTY_THROTTLED, &tty->flags); 210 209 retval = 0; 210 + tty->low_latency = 1; 211 211 out: 212 212 return retval; 213 213 }