On 9/24/2023 9:52 PM, Eli Zaretskii wrote: >> Date: Sun, 24 Sep 2023 16:02:03 -0700 >> From: Jim Porter >> >> However, I don't understand why this would cause an abort though; >> normally, 'process-send-string' should just signal an Elisp error (which >> Eshell then catches and does the right thing with it). Maybe there's a >> bug somewhere in process.c where it's not correctly handling the (real) >> SIGPIPE signal and converting it to an Elisp signal? > > In batch mode, SIGPIPE is not ignored by Emacs, see init_signals. > This was changed 11 years ago, see commit 4d7e6e51dd. Thanks, I didn't realize that. > Perhaps Eshell should check that the process is still alive before > calling process-send-string? Ok, how about this? Jens, could you try this patch out to see if it fixes things for you?