]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#35506
authorJohn Shahid <jvshahid@gmail.com>
Sat, 4 May 2019 16:25:51 +0000 (18:25 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 4 May 2019 16:25:51 +0000 (18:25 +0200)
* lisp/net/tramp.el (tramp-interrupt-process): Kill the entire
process group.  (Bug#35506)

lisp/net/tramp.el

index 2e1a0960d7dfd8772127d8825dd7ac90f33a7d2a..427b3c41e3a43bab61e44046784f2f4ce80b6136 100644 (file)
@@ -4870,7 +4870,7 @@ Only works for Bourne-like shells."
        (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))