]> git.eshelyaron.com Git - emacs.git/commit
Send SIGPIPE to external Eshell processes if their output target closes
authorJim Porter <jporterbugs@gmail.com>
Wed, 2 Feb 2022 03:16:00 +0000 (19:16 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Feb 2022 17:39:40 +0000 (18:39 +0100)
commit9df5e3080066341d78489f0b18eabeeccac76b0c
treeea9ac8b9c383da7c975c2a7ebb27dca45f9012f6
parent76429f4d1792b890c6fc69a5bd7a5cdef28d257a
Send SIGPIPE to external Eshell processes if their output target closes

* lisp/eshell/esh-io.el (eshell-pipe-broken): New error.
(eshell-output-object-to-target): Signal 'eshell-pipe-broken' if the
target is an exited/signaled process.

* lisp/eshell/esh-proc.el (eshell-insertion-filter): Handle
'eshell-pipe-broken'.

* test/lisp/eshell/esh-proc-tests.el: New test.
lisp/eshell/esh-io.el
lisp/eshell/esh-proc.el
test/lisp/eshell/esh-proc-tests.el [new file with mode: 0644]
test/lisp/eshell/eshell-tests-helpers.el