commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 07/64: Let pty readers always read end of writer output


From: Samuel Thibault
Subject: [hurd] 07/64: Let pty readers always read end of writer output
Date: Wed, 10 Dec 2014 15:17:03 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit fa108a1e6f15946aa72cd8edd09f3c08255b76fd
Author: Samuel Thibault <address@hidden>
Date:   Fri Nov 21 02:47:19 2014 +0100

    Let pty readers always read end of writer output
    
    * term/ptyio.c (pty_io_read): Do not return EIO when there is no writer
    any more but some output remains in the pipe.
---
 term/ptyio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/term/ptyio.c b/term/ptyio.c
index 211e70a..6b01585 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]