From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.help Subject: Re: Tramp / process has died Date: Sun, 25 Nov 2007 11:32:55 +0000 Message-ID: <24C568C0-C876-409D-83D8-1A2A5900E1F9@gmail.com> References: <639837CF-4C8B-4BDE-970C-3BF8DCACCF5C@gmail.com> <8763zqbo57.fsf@gmx.de> Reply-To: david.reitter@gmail.com, emacs-help gnu gnu NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195990408 31727 80.91.229.12 (25 Nov 2007 11:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 11:33:28 +0000 (UTC) Cc: emacs-help gnu gnu To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 12:33:35 2007 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 1IwFjy-0003Wq-RR for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 12:33:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwFjj-0000dd-LK for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 06:33:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwFjV-0000c0-Bm for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 06:33:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwFjS-0000bo-OI for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 06:33:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwFjS-0000bl-KP for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 06:33:02 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwFjS-00078e-4j for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 06:33:02 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so843394ugf for ; Sun, 25 Nov 2007 03:33:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:in-reply-to:subject:references:message-id:content-type:content-transfer-encoding:reply-to:mime-version:date:cc:x-mailer; bh=27AMpey2P2XotCArM4m9xXVwKRPfbVsGqSWUZvTjfQM=; b=DBSoCO7Nc0vv9f19RTMxrS/Y5yrx++nUuLcWOChax9T+aNOStFzFVpzT5HJbH/T/K7jSyh+kzSGO7Quf3geNGu/87UVZVGb/tqqGSZUs2eXWFPAfZCzx8PBmyYB2MFWsWbqRUnjAPnXr/AuZq1pd9eWYdgIx0T3spbqMvuvMLT4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:from:to:in-reply-to:subject:references:message-id:content-type:content-transfer-encoding:reply-to:mime-version:date:cc:x-mailer; b=c9bEVDAl725/tAI9pTVfY62RdQb0Ct+UTnRM7HlmfOsTLzqz/USfm7ac7ADkFkQd4YjGCDhptwbp4D/tvKBolh1ueBoFZpy+qwrWdh0wQOUtucTCJH7HDvfvs2SqCcgP8AknlR0/DrsDJuo1VG+MoY0en0HPRhFvoqd82PPfOWM= Original-Received: by 10.67.24.11 with SMTP id b11mr2813859ugj.1195990379593; Sun, 25 Nov 2007 03:32:59 -0800 (PST) Original-Received: from localhost ( [129.215.212.186]) by mx.google.com with ESMTPS id z12sm284508gvf.2007.11.25.03.32.56 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2007 03:32:57 -0800 (PST) In-Reply-To: <8763zqbo57.fsf@gmx.de> X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:49498 Archived-At: On 25 Nov 2007, at 10:44, Michael Albinus wrote: > David Reitter writes: > >> How can I make tramp reconnect automatically to its ssh connection >> when it detects that the process "has died"? > > Which Tramp version do you use? The upcoming Tramp 2.1.12 has a new > command `tramp-cleanup-connection', which you can call interactively. > This is not "reconnect automatically", but it could be a starting > point. I'm running "2.0.57-pre", which is, I believe, what comes with Emacs 22.x (CVS). In principle what I'm doing is to quit the stack trace that I'm getting, and then to retry the command again. But as a user, I don't want that interruption - I just want it to reconnect automatically. > I could also try to let it run in the background when it detects a > broken connection. But this needs more sophisticated checks, in order > not to run into an infinite loop. Sure, reconnection attempts should be timed and spaced. Perhaps you can initiate them whenever a new IP address has been assigned to the host. And "background" is good, because this would minimize the "hanging" when saving (and all other accesses) (i.e. busy time in which Emacs is unresponsive to user input apart from C-g). - D