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:
parent
57defada88
commit
342998511a
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue