>From cf2d0e2e58a683756878c9c7e4dd2066efe6e807 Mon Sep 17 00:00:00 2001 From: John Shahid Date: Mon, 29 Apr 2019 16:10:47 -0400 Subject: [PATCH] Do not wait for process output after interruption. Some processes such as terraform can have cleanup logic that causes the process to take longer to shut down than normal. This causes eshell to do a busy wait locking up Emacs while waiting for the process to finish. I don't understand why we do that anyway, just let the process finish at its own pace. --- lisp/net/tramp.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 427b3c41e3..27bef45efb 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -4873,10 +4873,7 @@ tramp-interrupt-process (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)) - (while (tramp-accept-process-output proc)) - ;; Report success. - proc))))) + )))) ;; `interrupt-process-functions' exists since Emacs 26.1. (when (boundp 'interrupt-process-functions) -- 2.21.0