emacs-devel
[Top][All Lists]
Advanced

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

Re: some accept-process-output races fixed; Tramp FIXMEs


From: Eli Zaretskii
Subject: Re: some accept-process-output races fixed; Tramp FIXMEs
Date: Tue, 22 Jan 2019 18:56:35 +0200

> From: Michael Albinus <address@hidden>
> Date: Sun, 20 Jan 2019 10:57:16 +0100
> Cc: Stefan Monnier <address@hidden>, address@hidden
> 
> IIRC, the timeout is used because accept-process-output could be blocked
> otherwise. Tramp has often the need to check whether there is still
> output from the process, and the timeout is the only way I know that
> accept-process-output returns in finite time.
> 
> At least this was the case 15+ years ago, and also supporting XEmacs. If
> we could guarantee that (accept-process-output p) returns when either
> output has arrived and or the process has finished, I could change the
> code. This promise must be kept for all Emacs versions since 24, and for
> all platforms, including w32.

I don't know about XEmacs (is that still a concern in Tramp?), but in
Emacs you can poll a process for output with accept-process-output
like this:

  (accept-process-output PROC 0)

AFAICT, this worked in Emacs 24.1 as well.



reply via email to

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