unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Killing a hung ssh process in a TRAMP session
Date: Wed, 06 Jan 2010 23:24:31 -0800	[thread overview]
Message-ID: <4B458C2F.9010709@gmail.com> (raw)

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.




             reply	other threads:[~2010-01-07  7:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07  7:24 Suvayu Ali [this message]
2010-01-07  8:41 ` Killing a hung ssh process in a TRAMP session Michael Albinus
2010-01-07 15:29   ` Suvayu Ali
2010-01-07 15:46     ` Michael Albinus
2010-01-14  6:23       ` Suvayu Ali
2010-01-17 12:23         ` Michael Albinus
2010-01-17 19:18           ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B458C2F.9010709@gmail.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).