diff options
Diffstat (limited to 'term/ptyio.c')
-rw-r--r-- | term/ptyio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/term/ptyio.c b/term/ptyio.c index 211e70a8..6b015851 100644 --- a/term/ptyio.c +++ b/term/ptyio.c @@ -331,7 +331,7 @@ pty_io_read (struct trivfs_protid *cred, } } - if (!(termflags & TTY_OPEN)) + if (!(termflags & TTY_OPEN) && !qsize (outputq)) { pthread_mutex_unlock (&global_lock); return EIO; |