From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Markus Triska <markus.triska@gmx.at>
Cc: emacs-pretest-bug@gnu.org, 985@emacsbugs.donarmstrong.com
Subject: bug#985: 23.0.60; emacsclient -c error on first time in new SSH sessions
Date: Tue, 16 Sep 2008 11:23:14 -0400 [thread overview]
Message-ID: <jwv8wtsp180.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <20080916140427.31679AE46AE@mt-computer.local> (Markus Triska's message of "Tue, 16 Sep 2008 16:04:27 +0200 (CEST)")
> On machine A (Ubuntu Intrepid), I do:
> $ emacs -nw -Q -f server-start
>> From machine B (OSX 10.4 or Ubuntu Intrepid running in Virtualbox), I
> SSH to machine A:
> $ ssh -X -Y <machine A>
> and then, in the SSH session, do:
> $ emacsclient -c
> As expected, I get an X frame on machine B. I then close that frame
> (C-x 5 0) and the SSH session (C-d) and, from B, SSH to A again:
> $ ssh -X -Y <machine A>
> When I then do "emacsclient -c" in the SSH session, it says:
> Waiting for Emacs...
> *ERROR*: Connection lost to X server `localhost:10.0'
> When I then again do "emacsclient -c", it works without problems, and
> I get again an X frame on machine B every further time I do it.
I think I know what's going on: even tho you've closed the frame,
Emacs did not close the X11 connection, so when you ssh in again and try
"emacsclient -c" a second time (and with the same
DISPLAY=localhost:10.0), Emacs tries to reuse the old connection, which
fails because that X11-proxy was killed along with your first
ssh session. At that point, Emacs throws away this stale connection, so
that the next attempt works again.
I guess Emacs could/should disconnect from the X server as soon as the
last frame is closed.
Stefan
next prev parent reply other threads:[~2008-09-16 15:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87wsgkthsl.fsf@cyd.mit.edu>
2008-09-16 14:04 ` bug#985: 23.0.60; emacsclient -c error on first time in new SSH sessions Markus Triska
2008-09-16 15:23 ` Stefan Monnier [this message]
2008-10-07 18:00 ` bug#985: marked as done (23.0.60; emacsclient -c error on first time in new SSH sessions) Emacs bug Tracking System
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=jwv8wtsp180.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=985@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=markus.triska@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).