Michael Albinus <[email protected]> writes:

Hi Ryan,

>> It is still the same, the ssh command does not return anything back to
>> Tramp. I have tried it from my local machine, and I get
>>
>> [email protected]: Permission denied (publickey).
>>
>> which is expected.
>
> Correction: I get this response from inside "M-x shell". With Tramp, I
> don't get any response, like you. That's good, so I can continue to
> debug :-)

Finally, I could fix it locally. Could you pls check, whether the
appended patch fixes this for you as well? The patch is on top of Tramp
2.4.3.3, which is available via GNU ELPA. It might be applicable also
for older Tramp versions; haven't checked.

Best regards, Michael.

diff --git a/lisp/tramp.el b/lisp/tramp.el
index 7e028ecf..43992519 100644
--- a/lisp/tramp.el
+++ b/lisp/tramp.el
@@ -4090,6 +4090,8 @@ The terminal type can be configured with `tramp-terminal-type'."
 (defun tramp-action-process-alive (proc _vec)
   "Check, whether a process has finished."
   (unless (process-live-p proc)
+    ;; There might be pending output.
+    (while (tramp-accept-process-output proc 0))
     (throw 'tramp-action 'process-died)))

 (defun tramp-action-out-of-band (proc vec)

Reply via email to