[Top][All Lists]

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

Re: emacs | Pipeline #8399 has failed for master | ee0e259e

From: Philipp Stephani
Subject: Re: emacs | Pipeline #8399 has failed for master | ee0e259e
Date: Tue, 5 Jan 2021 14:44:56 +0100

Am Di., 5. Jan. 2021 um 08:52 Uhr schrieb Michael Albinus
> Philipp Stephani <p.stephani2@gmail.com> writes:
> >> process-test-sentinel-wait-function-working-p which is used by
> >> process-test-sentinel-sit-for looks racy. Just because the process
> >> sentinel has been called is no guarantee that the process has exited
> >> and had its process-status set correctly, perhaps it should loop on
> >> 'process-live-p'
> >
> > AFAIK the only correct way to wait for a process to exit is (while
> > (accept-process-output PROC)).
> I vaguely remember that Stefan did propose (while (accept-process-output
> PROC 0)).

I guess that would work as well, but wouldn't it result in a busy
wait? OTOH, accept-process-output with an infinite timeout should
return immediately if the process has terminated (i.e. Emacs has
processed the SIGCHLD signal).

reply via email to

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