From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Killing a hung ssh process in a TRAMP session Date: Wed, 06 Jan 2010 23:24:31 -0800 Message-ID: <4B458C2F.9010709@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262849179 30178 80.91.229.12 (7 Jan 2010 07:26:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jan 2010 07:26:19 +0000 (UTC) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 07 08:26:12 2010 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 1NSml1-00032w-I8 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Jan 2010 08:26:11 +0100 Original-Received: from localhost ([127.0.0.1]:59020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSml2-00027x-2Y for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Jan 2010 02:26:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSmja-0001Dw-EX for help-gnu-emacs@gnu.org; Thu, 07 Jan 2010 02:24:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSmjU-00019U-Ld for help-gnu-emacs@gnu.org; Thu, 07 Jan 2010 02:24:41 -0500 Original-Received: from [199.232.76.173] (port=37859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSmjT-000196-Tg for help-gnu-emacs@gnu.org; Thu, 07 Jan 2010 02:24:35 -0500 Original-Received: from mail-pw0-f47.google.com ([209.85.160.47]:61309) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSmjT-0002sN-EA for help-gnu-emacs@gnu.org; Thu, 07 Jan 2010 02:24:35 -0500 Original-Received: by pwj10 with SMTP id 10so5361018pwj.26 for ; Wed, 06 Jan 2010 23:24:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=hsoLP/nlIYTRoc+PWATL0sDFpI7LcqOlXJvUwvcuwxI=; b=sQ/XfoI1fi8EtTJSET1YSg2yf8xUSOatYUUiSw1yA8pBdsmG757nmUcBbypXhvz7EW snGkjKJW61Q/D51gMg+MKlG55fwJ9tNg3EfDlDbpTz0k9lfhiDKsADC/3S3+ebe+aT8L IXvJWwuyIoEXmYmeAxYrVk3hTvRD+hv1ZcPug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=hZty7QY5IWIeYze/XAJzlyo8zVvpliyFOkXUTiyiP+KDRePeMRcoguPwmva7zqzKkV 4jkdIBRGH33qXjkrofibFeGrqq85SWSuw1lRr9egzN3T01eDSg3m/2RoRwklsUlE+FaD XMGmkaOzm6zsyl4JKdMAga4s8I40JYHzi0+M0= Original-Received: by 10.142.5.28 with SMTP id 28mr269846wfe.82.1262849073719; Wed, 06 Jan 2010 23:24:33 -0800 (PST) Original-Received: from bhishma.kuru (d66-183-41-96.bchsia.telus.net [66.183.41.96]) by mx.google.com with ESMTPS id 21sm17626863pzk.11.2010.01.06.23.24.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 06 Jan 2010 23:24:32 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Lightning/1.0pre Thunderbird/3.0 X-detected-operating-system: by monty-python.gnu.org: GNU/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:71102 Archived-At: Hi everyone, I have a small problem. I usually have to develop code remotely. (usually across the Atlantic :) ) The connection is not always very stable. Whenever there are any network problems, TRAMP keeps trying to reconnect to the remote machine. My problem is whenever TRAMP is trying to reconnect, the whole emacs session hangs. The only way out of this situation is to wait for the connection to be established (not always practical as often it might take over 10 mins for the network to be back to normal) or kill emacs with `kill -9'. And since I usually run emacs in server mode, this means loosing a really complicated session with lots of buffers on several remote machines. Is there any way I could tell emacs not to reconnect when this happens? I tried running `ps uf -u `whoami`' and kill the shell running the hung ssh process. But that only re-spawns the process again. Is there anyway around this? Hopefully I have explained my predicament clearly. Thanks for any advice on this. -- Suvayu Open source is the future. It sets us free.