emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master cbeeab2: accept-process-output fix


From: Paul Eggert
Subject: [Emacs-diffs] master cbeeab2: accept-process-output fix
Date: Sun, 05 Jul 2015 22:15:06 +0000

branch: master
commit cbeeab2eab5d53f0fba452d4790d7a58071605e2
Author: Ian Kelling <address@hidden>
Commit: Paul Eggert <address@hidden>

    accept-process-output fix
    
    This is a followon to the fix for Bug#17647 (Bug#20976).
    * src/process.c (status_notify): Fix too high return in some cases.
---
 src/process.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/process.c b/src/process.c
index 3132f19..70c9076 100644
--- a/src/process.c
+++ b/src/process.c
@@ -6714,7 +6714,8 @@ status_notify (struct Lisp_Process *deleting_process,
                 && p != deleting_process)
            {
              int nread = read_process_output (proc, p->infd);
-             if (got_some_input < nread)
+             if ((!wait_proc || wait_proc == XPROCESS (proc))
+                 && got_some_input < nread)
                got_some_input = nread;
              if (nread <= 0)
                break;



reply via email to

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