Don't use the Lisp implementation of "kill" in remote Eshell directories

* lisp/eshell/esh-proc.el (eshell/kill): When in a remote directory,
fall back to the external "kill" program (bug#72013).
This commit is contained in:
Jim Porter 2024-07-09 17:19:26 -07:00
parent 57defada88
commit 342998511a

View file

@ -206,6 +206,11 @@ This is like `process-live-p', but additionally checks whether
Usage: kill [-<signal>] <pid>|<process> ...
Accepts PIDs and process objects. Optionally accept signals
and signal names."
;; The implementation below only supports local PIDs. For remote
;; connections, fall back to the external "kill" command.
(when (file-remote-p default-directory)
(declare-function eshell-external-command "esh-ext" (command args))
(throw 'eshell-external (eshell-external-command "kill" args)))
;; If the first argument starts with a dash, treat it as the signal
;; specifier.
(let ((signum 'SIGINT))