]> git.eshelyaron.com Git - emacs.git/commit
Fix a race condition in Eshell's external process management
authorJim Porter <jporterbugs@gmail.com>
Sat, 10 Dec 2022 07:07:19 +0000 (23:07 -0800)
committerJim Porter <jporterbugs@gmail.com>
Sun, 27 Aug 2023 19:26:19 +0000 (12:26 -0700)
commit2efb8d2e244d926ad5963faa4712145c8f0927ba
tree58d050ed24582f58994c4c5d852c35d2611b4765
parent9500e7df861120156abb86d86516cb6129af1f08
Fix a race condition in Eshell's external process management

If a process is busy writing output when 'eshell-sentinel' is called,
it might take a bit of time to finish up.  Don't call
'eshell-kill-process-function' until we're really finished
(bug#59103).

* lisp/eshell/esh-proc.el (eshell-sentinel): Call
'eshell-kill-process-function' in 'finish-io'.
lisp/eshell/esh-proc.el