]> git.eshelyaron.com Git - emacs.git/commitdiff
accept-process-output fix
authorIan Kelling <ian@iankelling.org>
Sun, 5 Jul 2015 22:14:12 +0000 (15:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Jul 2015 22:15:01 +0000 (15:15 -0700)
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

index 3132f19d636708dc87dabe792579c55abc7f3b0b..70c9076d4e87a31bda7e56d114515f7dca545451 100644 (file)
@@ -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;