From 27f53bd6886c1a76ac7058ae7b90cacc317aadea Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 16 Jan 2019 10:31:21 -0800 Subject: [PATCH] * doc/lispref/processes.texi (Accepting Output): Simplify. --- doc/lispref/processes.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index afda8aede83..fd6686e8828 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -1870,13 +1870,13 @@ process has exited. Therefore, although the following loop: @end example @noindent -will often work, it has a race condition and can miss some output if -@code{process-live-p} returns @code{nil} while the connection still -contains data. Better is to write the loop like this: +will often read all output from @var{process}, it has a race condition +and can miss some output if @code{process-live-p} returns @code{nil} +while the connection still contains data. Better is to write the loop +like this: @example -(while (or (accept-process-output process) - (process-live-p process))) +(while (accept-process-output process)) @end example @node Processes and Threads -- 2.39.5