From: "Sébastien Gross" <seb@chezwam.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: "Sébastien Gross" <seb@chezwam.org>, 8929@debbugs.gnu.org
Subject: bug#8929: 24.0.50; tramp hangs when process died
Date: Mon, 27 Jun 2011 10:57:40 +0200 [thread overview]
Message-ID: <87r56fwt17.fsf@ubik.of1par.int.rtblw.com> (raw)
In-Reply-To: <87oc1l7zbp.fsf@gmx.de> (Michael Albinus's message of "Sun, 26 Jun 2011 10:48:42 +0200")
Michael Albinus <michael.albinus@gmx.de> writes:
Hi,
> I wouldn't like to add such a radical buffer kill. Asynchronous
> processes on remote hosts would loose their output buffer, when they
> have finished. Debugging of Tramp problems would be harder.
I do totally agree with you about the debugging purposes. So why not
setting up a variable such as:
(defcustom tramp-kill-process-buffer-on-exit nil
"Kill remote shell buffer process if connection with remote host is
lost."
:group 'tramp
:type 'boolean)
Setting by default this variable to `nil' doesn't affect current tramp
behavior. Then one can chose how tramp should handle process ending by
changing `tramp-kill-process-buffer-on-exit'.
And add in `tramp-maybe-open-connection':
;; Kill buffer when process died.
(when tramp-kill-process-buffer-on-exit
(set-process-sentinel
p
(lambda (proc change)
(when (eq (process-status proc) 'exit)
(kill-buffer (process-buffer proc)))
>
> On GNU Linux systems, it might be possible to catch D-Bus signals for
> resuming the system after hibernate or suspend. Could you, please, eval
> the following lines, and see whether Tramp behaves better?
>
> (require 'dbus)
> (dbus-register-signal
> :system "org.freedesktop.UPower" "/org/freedesktop/UPower"
> "org.freedesktop.UPower" "Resuming" 'tramp-cleanup-all-connections)
>
> If this works for you (it does for me), I would add a custom option for
> enabling this behaviour.
This works fine but on in one use case on power resuming. If for some
reason the connection with a remote host is lost, the dbus solution acts
more like a workaround, not like a global issue solving.
Cheers,
--
Sébastien Gross
next prev parent reply other threads:[~2011-06-27 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-24 13:21 bug#8929: 24.0.50; tramp hangs when process died Sébastien Gross
2011-06-26 8:48 ` Michael Albinus
2011-06-27 8:57 ` Sébastien Gross [this message]
2011-07-01 12:59 ` Michael Albinus
2011-07-07 13:24 ` Michael Albinus
[not found] ` <87wrfu9kkd.fsf@ubik.of1par.int.rtblw.com>
2011-07-07 15:52 ` Michael Albinus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r56fwt17.fsf@ubik.of1par.int.rtblw.com \
--to=seb@chezwam.org \
--cc=8929@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.