>From e056e98d4b899b8ae7636a967d0a55125e624fad Mon Sep 17 00:00:00 2001 From: John Shahid Date: Mon, 29 Apr 2019 16:09:32 -0400 Subject: [PATCH] Kill the entire process group Some processes (e.g. terraform) don't handle signals but its subprocess (with the exact same name) does. Killing the parent process doesn't do anything, we have to send the signal to the entire group in order to reach the child. This seems to be what terminals typically do. --- lisp/net/tramp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 2e1a0960d7..427b3c41e3 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -4870,7 +4870,7 @@ tramp-interrupt-process (tramp-compat-funcall 'tramp-send-command (process-get proc 'vector) - (format "kill -2 %d" pid)) + (format "kill -2 -%d" pid)) ;; Wait, until the process has disappeared. If it doesn't, ;; fall back to the default implementation. (with-timeout (1 (ignore)) -- 2.21.0