From: Paul Eggert Date: Wed, 16 Jan 2019 18:31:21 +0000 (-0800) Subject: * doc/lispref/processes.texi (Accepting Output): Simplify. X-Git-Tag: emacs-27.0.90~3810 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=27f53bd6886c1a76ac7058ae7b90cacc317aadea;p=emacs.git * doc/lispref/processes.texi (Accepting Output): Simplify. --- 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