[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 29db0dd: Improve connection hand-shaking in tramp-a
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 29db0dd: Improve connection hand-shaking in tramp-adb.el |
Date: |
Wed, 20 Feb 2019 09:59:27 -0500 (EST) |
branch: master
commit 29db0dd31172ecbc73abdb1895214818be5cbf26
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Improve connection hand-shaking in tramp-adb.el
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
Send an additional RET.
---
lisp/net/tramp-adb.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index f3ba7f2..1ba8d62 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -1314,7 +1314,10 @@ connection if a previous connection has died for some
reason."
(current-time-string)))))
(tramp-message
vec 6 "%s" (mapconcat 'identity (process-command p) " "))
- ;; Wait for initial prompt.
+ ;; Wait for initial prompt. On some devices, it needs an
+ ;; initial RET, in order to get it.
+ (sleep-for 0.1)
+ (tramp-send-string vec tramp-rsh-end-of-line)
(tramp-adb-wait-for-output p 30)
(unless (process-live-p p)
(tramp-error vec 'file-error "Terminated!"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 29db0dd: Improve connection hand-shaking in tramp-adb.el,
Michael Albinus <=