On 7/16/2024 7:09 PM, Jim Porter wrote: > After testing some more locally, I notice that too. Digging further, > this problem is actually multifaceted, and fixing all the different > issues I've uncovered would be too risky for Emacs 30. Does the first > patch I posted work for you? That's a lot simpler, and should be safe > enough for Emacs 30; then I can make more extensive fixes for Emacs > 31. I think the attached patches would work for Emacs 31, but are almost certainly too risky for Emacs 30. The first one especially changes some very fundamental parts of Eshell, though happily in a way that simplifies it a bit overall. The original patch I posted is probably the safest for Emacs 30, since it's only a slight tweak to how we kill processes when their output pipe breaks.