]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/char/pty.c
pty: fix data loss when stopped (^S/^Q)
[~shefty/rdma-dev.git] / drivers / char / pty.c
index 6e6942c45f5b6cb76d6c1aaf91ed96fee9185ae7..d083c73d784a76a34500c26cc582f3d68770be72 100644 (file)
@@ -144,6 +144,8 @@ static int pty_write(struct tty_struct *tty, const unsigned char *buf,
 
 static int pty_write_room(struct tty_struct *tty)
 {
+       if (tty->stopped)
+               return 0;
        return pty_space(tty->link);
 }