]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/lispref/processes.texi (Accepting Output): Simplify.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Jan 2019 18:31:21 +0000 (10:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Jan 2019 23:52:51 +0000 (15:52 -0800)
doc/lispref/processes.texi

index afda8aede83e6d806f1e59602a286adec399a958..fd6686e882892dd31f5b2840c08b4213635cb365 100644 (file)
@@ -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