From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp and BusyBox problem? Date: Tue, 17 Mar 2009 21:37:49 +0100 Message-ID: <87y6v3rile.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1237322316 8724 80.91.229.12 (17 Mar 2009 20:38:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 20:38:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mats =?utf-8?Q?L=C3=B6fdahl?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 21:39:53 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ljg4m-0006GU-Jx for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 21:39:52 +0100 Original-Received: from localhost ([127.0.0.1]:49871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ljg3Q-0005SM-7n for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 16:38:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ljg36-0005SH-OC for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 16:38:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ljg32-0005Rm-CS for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 16:38:08 -0400 Original-Received: from [199.232.76.173] (port=50123 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ljg32-0005Rj-74 for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 16:38:04 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:38937) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ljg31-0003wE-9T for help-gnu-emacs@gnu.org; Tue, 17 Mar 2009 16:38:04 -0400 Original-Received: (qmail invoked by alias); 17 Mar 2009 20:38:01 -0000 Original-Received: from brln-4db93f2a.pool.einsundeins.de (EHLO arthur.local) [77.185.63.42] by mail.gmx.net (mp022) with SMTP; 17 Mar 2009 21:38:01 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19GuTZp3HJGSYi9QHG1B0hsj/lT2J5r9IvH4sRQOO UDBL8CGkQWUWVG In-Reply-To: ("Mats =?utf-8?Q?L=C3=B6fdah?= =?utf-8?Q?l=22's?= message of "Sun, 15 Mar 2009 22:23:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63026 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mats L=C3=B6fdahl writes: [I fear my answer from yesterday has been lost. Reposted, therefore.] > It was different this time. When I connected as mats (bash), I first > got the same uname error message as for root (BusyBox). But I knew > that it _had_ worked, so I tried again and got the ugly dired buffer. > > So I did the same experiment with root in a fresh instance of > emacs. This generated the uname error but did _not_ work at the second > attempt. > > The debug buffers from the two sessions are here: > > http://www.solarphysics.kva.se/~mats/debug1.txt - root/BusyBox > http://www.solarphysics.kva.se/~mats/debug2.txt - mats/bash Looks like there is a race condition. Could you, please, check the appended patch? Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment *** /home/albinus/src/tramp/lisp/tramp.el.2.677 2009-03-17 21:31:51.000000000 +0100 --- /home/albinus/src/tramp/lisp/tramp.el 2009-03-17 21:52:16.000000000 +0100 *************** *** 5859,5869 **** (delete-region begin (point)) (goto-char (point-min))))) ! (when (or ! ;; No echo to be handled, now we can look for the regexp. ! (not (tramp-get-connection-property proc "check-remote-echo" nil)) ! ;; Sometimes the echo is invisible. ! (not (re-search-forward tramp-echo-mark-marker nil t))) (goto-char (point-min)) (re-search-forward regexp nil t)))) --- 5859,5866 ---- (delete-region begin (point)) (goto-char (point-min))))) ! (when (not (tramp-get-connection-property proc "check-remote-echo" nil)) ! ;; No echo to be handled, now we can look for the regexp. (goto-char (point-min)) (re-search-forward regexp nil t)))) --=-=-=--