help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: No thread yield when using synchronous processes?


From: Michael Albinus
Subject: Re: No thread yield when using synchronous processes?
Date: Thu, 13 Dec 2018 10:47:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Philipp Stephani <p.stephani2@gmail.com> writes:

> Hi,

Hi Philipp,

> it seems like Emacs doesn't yield when using synchronous processes:
>
> (make-thread (lambda () (call-process "sleep" nil nil nil "5s")))
>
> ⇒ Emacs freezes for 5 seconds.
>
> Is there a reason for this behavior? The manual claims that Emacs
> yields when waiting for process output, but that only seems to be the
> case for asynchronous processes.

The manual is clear about this: "when waiting for ... process output
(e.g., during ‘accept-process-output’)". `accept-process-output' is used
only for asynchronous processes.

> Thanks,
> Philipp

Best regards, Michael.



reply via email to

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