emacs-devel
[Top][All Lists]
Advanced

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

Re: Race condition in eshell-gather-process-output


From: Andreas Schwab
Subject: Re: Race condition in eshell-gather-process-output
Date: Sat, 19 Jan 2013 13:16:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux)

Jürgen Hötzel <address@hidden> writes:

>             (apply 'start-file-process
>                    (file-name-nondirectory command) nil
>                    ;; `start-process' can't deal with relative filenames.
>                    (append (list (expand-file-name command)) args))))
> ----------------------------------------------------------------------------------------
> something can happen meanwhile: The process may have written
> output (nil output buffer)
> ----------------------------------------------------------------------------------------
>
>       (eshell-record-process-object proc)
>       (set-process-buffer proc (current-buffer))
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Maybe too late to set output buffer!

It isn't.  Process output isn't read until accept-process-output is
called.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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