aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold <[email protected]>2006-02-08 15:47:31 +0000
committerSam Steingold <[email protected]>2006-02-08 15:47:31 +0000
commitdf2a9b125d690a972e6cd69af256352c6e400d92 (patch)
treed7539ef25c212b28e195b3ab147a02d1cc1037b6
parent201a821a54684f1ed622ed4bdadf81bc85c79a75 (diff)
(tramp-maybe-open-connection): Do not wait for output from a dead connection.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/net/tramp.el3
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 64a1dcec7e..c607ca350b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-08 Sam Steingold <[email protected]>
+
+ * net/tramp.el (tramp-maybe-open-connection): Do not wait for
+ output from a dead connection.
+
2006-02-07 Mathias Dahl <[email protected]>
* dired.el (dired-mode-map): Add more bindings for tumme.
@@ -351,7 +356,7 @@
* international/latexenc.el: Add a suitable `coding:' tag.
(latexenc-find-file-coding-system): Undo last change.
-2006-01-27 Arne J,bx(Brgensen <[email protected]>
+2006-01-27 Arne J,Ax(Brgensen <[email protected]>
* international/latexenc.el (latexenc-find-file-coding-system):
Make sure latexenc-main-file is a regular file and is readable.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 2fdf63ce35..afe5308a91 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -6482,7 +6482,8 @@ connection if a previous connection has died for some reason."
p (processp p) (memq (process-status p) '(run open)))
(tramp-send-command
multi-method method user host "echo are you awake" nil t)
- (unless (tramp-wait-for-output 10)
+ (unless (and (memq (process-status p) '(run open))
+ (tramp-wait-for-output 10))
(delete-process p)
(setq p nil))
(erase-buffer)))