emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 27f53bd: * doc/lispref/processes.texi (Accepting Ou


From: Paul Eggert
Subject: [Emacs-diffs] master 27f53bd: * doc/lispref/processes.texi (Accepting Output): Simplify.
Date: Wed, 16 Jan 2019 18:53:00 -0500 (EST)

branch: master
commit 27f53bd6886c1a76ac7058ae7b90cacc317aadea
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    * 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 afda8ae..fd6686e 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
address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]