From cbeeab2eab5d53f0fba452d4790d7a58071605e2 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 5 Jul 2015 15:14:12 -0700 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index 3132f19d636..70c9076d4e8 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; -- 2.39.5