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

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

bug#10483: [PATCH] cperl-mode: Avoid endless loop


From: Eli Zaretskii
Subject: bug#10483: [PATCH] cperl-mode: Avoid endless loop
Date: Fri, 04 Sep 2020 14:34:54 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: haj@posteo.de,  10483@debbugs.gnu.org
> Date: Fri, 04 Sep 2020 12:41:52 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I don't think I understand what's missing in what we have already.
> > The equivalent of 'fork' is 'start-process', and the equivalent of
> > 'waitpid' is a test of what 'process-status' returns.
> 
> waitpid waits until a process changes status, doesn't it?  In Emacs Lisp
> we have to write a loop over `process-status', which adds latency and
> just doesn't seem very elegant.

But the advantage of a loop is that you can do something while you
wait.  Whereas if you expose waitpid to Lisp, the Lisp program which
calls it will be parked inside the call, and the entire Emacs session
will stall.  Or what am I missing?





reply via email to

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