diff options
| author | Jim Porter | 2024-07-09 17:19:26 -0700 |
|---|---|---|
| committer | Jim Porter | 2024-07-09 17:19:26 -0700 |
| commit | 342998511add79c594a170dc04ecda2f2db0fd36 (patch) | |
| tree | ecdada46e114a74091a608838f9be0af7170b1a5 | |
| parent | 57defada883c7b93117246c52a383d417f77c765 (diff) | |
| download | emacs-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.el | 5 |
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 | |||
| 206 | Usage: kill [-<signal>] <pid>|<process> ... | 206 | Usage: kill [-<signal>] <pid>|<process> ... |
| 207 | Accepts PIDs and process objects. Optionally accept signals | 207 | Accepts PIDs and process objects. Optionally accept signals |
| 208 | and signal names." | 208 | and 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)) |