]> git.eshelyaron.com Git - emacs.git/commit
Fix another race condition when waiting for Eshell processes
authorJim Porter <jporterbugs@gmail.com>
Mon, 18 Sep 2023 17:17:12 +0000 (10:17 -0700)
committerJim Porter <jporterbugs@gmail.com>
Mon, 18 Sep 2023 17:26:34 +0000 (10:26 -0700)
commit146bd41ddef21a19634e2b90db4bfb619a2091b2
tree6eba4aedaa2d5557073adb8243fd6e1751ea6aea
parent991bf3f0f5dff66794785ebfcc867611fe75e0da
Fix another race condition when waiting for Eshell processes

When checking if the other processes in our pipeline are "alive", we
also need to check whether their sentinels are finished.  Otherwise,
we might proceed with command evaluation while one of the other
processes is still cleaning up.

* lisp/eshell/esh-proc.el (eshell-process-active-p): New function...
(eshell-wait-for-process)
* lisp/eshell/esh-cmd.el (eshell-resume-command): ... use it.
lisp/eshell/esh-cmd.el
lisp/eshell/esh-proc.el