aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Porter2024-07-09 17:19:26 -0700
committerJim Porter2024-07-09 17:19:26 -0700
commit342998511add79c594a170dc04ecda2f2db0fd36 (patch)
treeecdada46e114a74091a608838f9be0af7170b1a5
parent57defada883c7b93117246c52a383d417f77c765 (diff)
downloademacs-342998511add79c594a170dc04ecda2f2db0fd36.tar.gz
emacs-342998511add79c594a170dc04ecda2f2db0fd36.zip
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).
-rw-r--r--lisp/eshell/esh-proc.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el
index a5e9de79907..f982e2101f5 100644
--- a/lisp/eshell/esh-proc.el
+++ b/lisp/eshell/esh-proc.el
@@ -206,6 +206,11 @@ This is like `process-live-p', but additionally checks whether
206Usage: kill [-<signal>] <pid>|<process> ... 206Usage: kill [-<signal>] <pid>|<process> ...
207Accepts PIDs and process objects. Optionally accept signals 207Accepts PIDs and process objects. Optionally accept signals
208and signal names." 208and signal names."
209 ;; The implementation below only supports local PIDs. For remote
210 ;; connections, fall back to the external "kill" command.
211 (when (file-remote-p default-directory)
212 (declare-function eshell-external-command "esh-ext" (command args))
213 (throw 'eshell-external (eshell-external-command "kill" args)))
209 ;; If the first argument starts with a dash, treat it as the signal 214 ;; If the first argument starts with a dash, treat it as the signal
210 ;; specifier. 215 ;; specifier.
211 (let ((signum 'SIGINT)) 216 (let ((signum 'SIGINT))